Your SlideShare is downloading. ×
  • Like
Database Systems: Design, Implementation,
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Database Systems: Design, Implementation,

  • 553 views
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
553
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
8
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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.
    • The first steps in building a Web-based database front end using Macromedia ColdFusion.
    • What Extensible Markup Language (XML) is and why it is important for Web database development.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 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, represents the data management application that will be used to store data generated by application program.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 3. Native SQL Connectivity
    • Refers to connection interface that is provided by database vendor and is unique to that vendor.
    • 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.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 4. Native SQL Connectivity (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 5. 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).
    • Data Access Objects (DAO):
      • Object-oriented API used to access MS Access, MS FoxPro, and dBase databases from Visual Basic programs.
      • Provided an optimized interface that exposed functionality of Jet data engine to programmers.
      • DAO interface can also be used to access other relational style data sources.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 6. ODBC, DAO, and RDO (cont’d)
    • Remote Data Objects (RDO):
      • Higher-level object-oriented application interface used to access remote database servers.
      • Uses lower-level DAO and ODBC for direct access to databases.
      • Was optimized to deal with server-based databases, such as MS SQL Server, Oracle, and DB2.
    • Basic ODBC architecture has three main components:
      • High-level ODBC API through which application programs access ODBC functionality.
      • Driver manager that is in charge of managing all database connections.
      • ODBC driver that communicates directly to DBMS.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 7. ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 8. ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 9. ODBC, DAO, and RDO (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 10. OLE-DB
    • Object Linking and Embedding for Database.
    • Database middleware that adds object-oriented functionality for access to relational and nonrelational data.
    • Composed of series of COM objects that provide low-level database connectivity for applications.
    • OLE-DB model is better understood when you divide its functionality into following types of objects:
      • Consumers
      • Providers
    • OLE-DB did not provide support for scripting languages.
    • ActiveX Data Objects (ADO) provides high-level application-oriented interface to interact with OLE-DB, DAO, and RDO.
    • ADO provides unified interface to access data from any programming language that uses the underlying OLE-DB objects.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 11. OLE-DB (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 12. OLE-DB (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 13. ADO.NET
    • ADO.NET is data access component of Microsoft’s .NET application development framework.
    • Introduced two new features critical for development of distributed applications: DataSets and XML support:
      • DataSet is disconnected memory-resident representation of database.
      • DataSet is internally stored in XML format and data in DataSet can be made persistent as XML documents.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 14. ADO.NET (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 15. ADO.NET (cont’d)
    • ADO.NET comes with two standard data providers:
      • Data provider for OLE-DB data sources.
      • Data Provider for SQL Server.
    • No matter data provider, it must support set of specific objects in order to manipulate data in data source:
      • Connection
      • Command
      • DataReader
      • DataAdapter
      • DataSet
      • DataTable
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 16. 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.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 17. Internet Databases (cont’d) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 18. Web-to-Database Middleware: Server-Side Extensions
    • Also known as Web-to-database 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.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 19. Web Server Interfaces
    • Two well-defined Web server interfaces:
      • Common Gateway Interface (CGI).
      • Application programming interface (API).
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 20. 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.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 21. Client-Side Extensions
    • Add functionality to Web browser.
    • Following three general types:
      • Plug-ins.
      • Java and JavaScript.
      • ActiveX and VBScript.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 22. Using a Web-to-Database Production Tool: ColdFusion
    • Web application server:
      • Middleware application that expands Web server functionality by linking it to wide range of services.
      • Provides consistent run-time environment for Web applications.
    • ColdFusion application middleware can be used to:
      • Connect to and query database from Web page.
      • Present database data in Web page, using various formats.
      • Create dynamic Web search pages.
      • Create Web pages to insert, update, and delete database data.
      • Define required and optional relationships.
      • Define required and optional form fields.
      • Enforce referential integrity in form fields.
      • Use simple and nested queries and form select fields to represent business rules.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 23. How ColdFusion Works Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 24. The RobCor Sample Database Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 25.
    • Creating a Simple Query with CFQUERY and CFOUTPUT (Scripts 14.1, 14.2, and Figures 14.11, 14.12)
    • Creating a Simple Query with CFQUERY and CFTABLE
    • Creating a Dynamic Search Page
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 26. 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.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 27. Extensible Markup Language (XML) Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 28. XML Presentation Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 29. XML Applications
    • B2B exchanges.
    • Legacy systems integration.
    • Web page development.
    • Database support.
    • Database metadictionaries.
    • XML databases.
    • XML services.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel
  • 30. Summary
    • Database connectivity refers to the mechanisms through which application programs connect and communicate with data repositories.
    • Microsoft database connectivity interfaces are dominant players in the market and enjoy the support of most database vendors.
    • Native database connectivity refers to the connection interface that is provided by the database vendor and is unique to that vendor.
    • 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.
    • Database access through the Web is achieved through database-to-middleware software.
    • ColdFusion is a Web application server that provides database access (among other services) to the Web.
    • 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.
    Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel