In this chapter, you will learn: <ul><li>About the different database connectivity technologies. </li></ul><ul><li>How Web...
Database Connectivity <ul><li>Refers to mechanisms through which application programs connect and communicate with data re...
Native SQL Connectivity <ul><li>Refers to connection interface that is provided by database vendor and is unique to that v...
Native SQL Connectivity (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
ODBC, DAO, and RDO <ul><li>Open Database Connectivity (ODBC):  </li></ul><ul><ul><li>Microsoft’s implementation of a super...
ODBC, DAO, and RDO (cont’d) <ul><li>Remote Data Objects (RDO): </li></ul><ul><ul><li>Higher-level object-oriented applicat...
ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
OLE-DB <ul><li>Object Linking and Embedding for Database. </li></ul><ul><li>Database middleware that adds object-oriented ...
OLE-DB (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
OLE-DB (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
ADO.NET  <ul><li>ADO.NET is data access component of Microsoft’s .NET application development framework. </li></ul><ul><li...
ADO.NET (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
ADO.NET (cont’d) <ul><li>ADO.NET comes with two standard data providers:  </li></ul><ul><ul><li>Data provider for OLE-DB d...
Internet Databases <ul><li>Web database connectivity allows new innovative services that: </li></ul><ul><ul><li>Permit rap...
Internet Databases (cont’d) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
Web-to-Database Middleware:  Server-Side Extensions <ul><li>Also known as Web-to-database middleware. </li></ul><ul><li>Pr...
Web Server Interfaces <ul><li>Two well-defined Web server interfaces: </li></ul><ul><ul><li>Common Gateway Interface (CGI)...
The Web Browser  <ul><li>Software that lets users navigate (browse) Web. </li></ul><ul><li>Located in client computer. </l...
Client-Side Extensions  <ul><li>Add functionality to Web browser. </li></ul><ul><li>Following three general types:  </li><...
Using a Web-to-Database Production Tool: ColdFusion <ul><li>Web application server: </li></ul><ul><ul><li>Middleware appli...
How ColdFusion Works Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
The RobCor Sample Database Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
<ul><li>Creating a Simple Query with CFQUERY and CFOUTPUT (Scripts 14.1, 14.2, and Figures 14.11, 14.12) </li></ul><ul><li...
The Web as a Stateless System <ul><li>Stateless system indicates that at any given time, Web server does not know status o...
Extensible Markup Language (XML) Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
XML Presentation Database Systems: Design, Implementation, & Management, 7 th  Edition, Rob & Coronel
XML Applications <ul><li>B2B exchanges. </li></ul><ul><li>Legacy systems integration. </li></ul><ul><li>Web page developme...
Summary <ul><li>Database connectivity refers to the mechanisms through which application programs connect and communicate ...
Upcoming SlideShare
Loading in …5
×

Database Systems: Design, Implementation,

971 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
971
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Database Systems: Design, Implementation,

  1. 1. In this chapter, you will learn: <ul><li>About the different database connectivity technologies. </li></ul><ul><li>How Web-to-database middleware is used to integrate databases with the Internet. </li></ul><ul><li>The first steps in building a Web-based database front end using Macromedia ColdFusion. </li></ul><ul><li>What Extensible Markup Language (XML) is and why it is important for Web database development. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  2. 2. Database Connectivity <ul><li>Refers to mechanisms through which application programs connect and communicate with data repositories. </li></ul><ul><li>Database connectivity software is also known as database middleware. </li></ul><ul><li>Data repository, also known as data source, represents the data management application that will be used to store data generated by application program. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  3. 3. Native SQL Connectivity <ul><li>Refers to connection interface that is provided by database vendor and is unique to that vendor. </li></ul><ul><li>Best example of that type of native interface is Oracle RDBMS: To connect client application to Oracle database, you must install and configure Oracle’s SQL*Net interface in client computer. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  4. 4. Native SQL Connectivity (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  5. 5. ODBC, DAO, and RDO <ul><li>Open Database Connectivity (ODBC): </li></ul><ul><ul><li>Microsoft’s implementation of a superset of SQL Access Group Call Level Interface (CLI) standard for database access. </li></ul></ul><ul><ul><li>Probably most widely supported database connectivity interface. </li></ul></ul><ul><ul><li>Allows any Windows application to access relational data sources, using SQL via standard application programming interface (API). </li></ul></ul><ul><li>Data Access Objects (DAO): </li></ul><ul><ul><li>Object-oriented API used to access MS Access, MS FoxPro, and dBase databases from Visual Basic programs. </li></ul></ul><ul><ul><li>Provided an optimized interface that exposed functionality of Jet data engine to programmers. </li></ul></ul><ul><ul><li>DAO interface can also be used to access other relational style data sources. </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  6. 6. ODBC, DAO, and RDO (cont’d) <ul><li>Remote Data Objects (RDO): </li></ul><ul><ul><li>Higher-level object-oriented application interface used to access remote database servers. </li></ul></ul><ul><ul><li>Uses lower-level DAO and ODBC for direct access to databases. </li></ul></ul><ul><ul><li>Was optimized to deal with server-based databases, such as MS SQL Server, Oracle, and DB2. </li></ul></ul><ul><li>Basic ODBC architecture has three main components: </li></ul><ul><ul><li>High-level ODBC API through which application programs access ODBC functionality. </li></ul></ul><ul><ul><li>Driver manager that is in charge of managing all database connections. </li></ul></ul><ul><ul><li>ODBC driver that communicates directly to DBMS. </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  7. 7. ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  8. 8. ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  9. 9. ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  10. 10. OLE-DB <ul><li>Object Linking and Embedding for Database. </li></ul><ul><li>Database middleware that adds object-oriented functionality for access to relational and nonrelational data. </li></ul><ul><li>Composed of series of COM objects that provide low-level database connectivity for applications. </li></ul><ul><li>OLE-DB model is better understood when you divide its functionality into following types of objects: </li></ul><ul><ul><li>Consumers </li></ul></ul><ul><ul><li>Providers </li></ul></ul><ul><li>OLE-DB did not provide support for scripting languages. </li></ul><ul><li>ActiveX Data Objects (ADO) provides high-level application-oriented interface to interact with OLE-DB, DAO, and RDO. </li></ul><ul><li>ADO provides unified interface to access data from any programming language that uses the underlying OLE-DB objects. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  11. 11. OLE-DB (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  12. 12. OLE-DB (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  13. 13. ADO.NET <ul><li>ADO.NET is data access component of Microsoft’s .NET application development framework. </li></ul><ul><li>Introduced two new features critical for development of distributed applications: DataSets and XML support: </li></ul><ul><ul><li>DataSet is disconnected memory-resident representation of database. </li></ul></ul><ul><ul><li>DataSet is internally stored in XML format and data in DataSet can be made persistent as XML documents. </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  14. 14. ADO.NET (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  15. 15. ADO.NET (cont’d) <ul><li>ADO.NET comes with two standard data providers: </li></ul><ul><ul><li>Data provider for OLE-DB data sources. </li></ul></ul><ul><ul><li>Data Provider for SQL Server. </li></ul></ul><ul><li>No matter data provider, it must support set of specific objects in order to manipulate data in data source: </li></ul><ul><ul><li>Connection </li></ul></ul><ul><ul><li>Command </li></ul></ul><ul><ul><li>DataReader </li></ul></ul><ul><ul><li>DataAdapter </li></ul></ul><ul><ul><li>DataSet </li></ul></ul><ul><ul><li>DataTable </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  16. 16. Internet Databases <ul><li>Web database connectivity allows new innovative services that: </li></ul><ul><ul><li>Permit rapid response to competitive pressures by bringing new services and products to market quickly. </li></ul></ul><ul><ul><li>Increase customer satisfaction through creation of Web-based support services. </li></ul></ul><ul><ul><li>Yield fast and effective information dissemination through universal access from across street or across globe. </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  17. 17. Internet Databases (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  18. 18. Web-to-Database Middleware: Server-Side Extensions <ul><li>Also known as Web-to-database middleware. </li></ul><ul><li>Program that interacts directly with Web server to handle specific types of requests. </li></ul><ul><li>Provides its services to Web server in way that is totally transparent to client browser. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  19. 19. Web Server Interfaces <ul><li>Two well-defined Web server interfaces: </li></ul><ul><ul><li>Common Gateway Interface (CGI). </li></ul></ul><ul><ul><li>Application programming interface (API). </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  20. 20. The Web Browser <ul><li>Software that lets users navigate (browse) Web. </li></ul><ul><li>Located in client computer. </li></ul><ul><li>End-user interface to World Wide Web. </li></ul><ul><li>Interprets HTML code received from Web server. </li></ul><ul><li>Presents different page components in standard way. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  21. 21. Client-Side Extensions <ul><li>Add functionality to Web browser. </li></ul><ul><li>Following three general types: </li></ul><ul><ul><li>Plug-ins. </li></ul></ul><ul><ul><li>Java and JavaScript. </li></ul></ul><ul><ul><li>ActiveX and VBScript. </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  22. 22. Using a Web-to-Database Production Tool: ColdFusion <ul><li>Web application server: </li></ul><ul><ul><li>Middleware application that expands Web server functionality by linking it to wide range of services. </li></ul></ul><ul><ul><li>Provides consistent run-time environment for Web applications. </li></ul></ul><ul><li>ColdFusion application middleware can be used to: </li></ul><ul><ul><li>Connect to and query database from Web page. </li></ul></ul><ul><ul><li>Present database data in Web page, using various formats. </li></ul></ul><ul><ul><li>Create dynamic Web search pages. </li></ul></ul><ul><ul><li>Create Web pages to insert, update, and delete database data. </li></ul></ul><ul><ul><li>Define required and optional relationships. </li></ul></ul><ul><ul><li>Define required and optional form fields. </li></ul></ul><ul><ul><li>Enforce referential integrity in form fields. </li></ul></ul><ul><ul><li>Use simple and nested queries and form select fields to represent business rules. </li></ul></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  23. 23. How ColdFusion Works Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  24. 24. The RobCor Sample Database Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  25. 25. <ul><li>Creating a Simple Query with CFQUERY and CFOUTPUT (Scripts 14.1, 14.2, and Figures 14.11, 14.12) </li></ul><ul><li>Creating a Simple Query with CFQUERY and CFTABLE </li></ul><ul><li>Creating a Dynamic Search Page </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  26. 26. The Web as a Stateless System <ul><li>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. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  27. 27. Extensible Markup Language (XML) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  28. 28. XML Presentation Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  29. 29. XML Applications <ul><li>B2B exchanges. </li></ul><ul><li>Legacy systems integration. </li></ul><ul><li>Web page development. </li></ul><ul><li>Database support. </li></ul><ul><li>Database metadictionaries. </li></ul><ul><li>XML databases. </li></ul><ul><li>XML services. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  30. 30. Summary <ul><li>Database connectivity refers to the mechanisms through which application programs connect and communicate with data repositories. </li></ul><ul><li>Microsoft database connectivity interfaces are dominant players in the market and enjoy the support of most database vendors. </li></ul><ul><li>Native database connectivity refers to the connection interface that is provided by the database vendor and is unique to that vendor. </li></ul><ul><li>Object Linking and Embedding for Database (OLE-DB) is a database middleware developed with the goal of adding object-oriented functionality for access to relational and nonrelational data. </li></ul><ul><li>Database access through the Web is achieved through database-to-middleware software. </li></ul><ul><li>ColdFusion is a Web application server that provides database access (among other services) to the Web. </li></ul><ul><li>Extensible Markup Language (XML) facilitates the exchange of B2B and other data over the Internet. </li></ul><ul><li>XML provides the semantics that facilitates the exchange, sharing, and manipulation of structured documents across organizational boundaries. </li></ul>Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel

×