Chapter 14 Database Connectivity and Web Development 1 In this chapter, you will learn: • About the different database connectivity technologies • How Web-to-database middleware is used to integrate databases with the Internet • What Extensible Markup Language (XML) is and why it is important for Web database development 2 2 Database Connectivity • Refers to mechanisms through which application programs connect and communicate with data repositories • Database connectivity software is also known as database middleware • Data repository, also known as data source 3 3 ODBC, DAO, and RDO • Open Database Connectivity (ODBC) • Microsoft’s implementation of a superset of SQL Access Group Call Level Interface (CLI) standard for database access • Probably most widely supported database connectivity interface • Allows any Windows application to access relational data sources, using SQL via standard application programming interface (API) 4 4 ODBC, DAO, and RDO • Data Access Objects (DAO) • Object-oriented API used to access MS Access, MS FoxPro, and dBase databases from Visual Basic programs 5 5 ODBC, DAO, and RDO • Remote Data Objects (RDO) • Higher-level objectoriented application interface used to access remote database servers • Was optimized to deal with server-based databases, such as MS SQL Server, Oracle, and DB2 6 6 Internet Databases • Web database connectivity allows new innovative services that: • Permit rapid response to competitive pressures by bringing new services and products to market quickly • Increase customer satisfaction through creation of Web-based support services • Yield fast and effective information dissemination through universal access from across street or across globe 7 7 Web-to-Database Middleware: Server-Side Extensions • Also known as Web-todatabase middleware • Program that interacts directly with Web server to handle specific types of requests • Provides its services to Web server in way that is totally transparent to client browser 8 8 The Web Browser • Software that lets users navigate (browse) Web • Located in client computer • End-user interface to World Wide Web • Interprets HTML code received from Web server • Presents different page components in standard way 9 9 Client-Side Extensions • Add functionality to Web browser • Following three general types: • Plug-ins • Java and JavaScript • ActiveX and VBScript 10 10 IGNORE…. Ignore Section on ColdFusion IT will not be examined 11 The Web as a Stateless System • Stateless system indicates that at any given time, Web server does not know status of any of clients communicating with it • Client and server computers interact in very short “conversations” that follow request-reply model 12 12 Extensible Markup Language (XML) 13 13 XML Presentation 14 14 XML Presentation (continued) 15 15 XML Presentation 16 16 XML Applications • • • • • • • B2B exchanges Legacy systems integration Web page development Database support Database metadictionaries XML databases XML services 17 17 Summary • Database connectivity refers to the mechanisms through which application programs connect and communicate with data repositories • Database access through the Web is achieved through database-to-middleware software • Extensible Markup Language (XML) facilitates the exchange of B2B and other data over the Internet • XML provides the semantics that facilitates the exchange, sharing, and manipulation of structured documents across organizational boundaries 18 18