Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2011 - Curt Hill Connectivity Communicating with the Database.

Similar presentations


Presentation on theme: "Copyright © 2011 - Curt Hill Connectivity Communicating with the Database."— Presentation transcript:

1 Copyright © 2011 - Curt Hill Connectivity Communicating with the Database

2 Copyright © 2011 - Curt Hill Introduction Most DBMSs are servers that respond to clients How do the two connect over a LAN, Intranet or the Internet? Numerous ways This discusses some of them

3 Locations If the server is running on the same machine as the client it is rather easy SQL Server likes: –Named pipes –TCP/IP –Shared memory If this is not the case then other options are needed Copyright © 2011 - Curt Hill

4 Some of the possibilities CLI (Call Level Interface) ODBC (Open DataBase Connectivity) JDBC (Java DataBase Connectivity) Copyright © 2011 - Curt Hill

5 CLI Call Level Interface Defined for C and COBOL language programs Standardized by ISO Determines the Application Program Interface between a program and a remote database –Program could be as simple as an SQL client or much more complicated Copyright © 2011 - Curt Hill

6 ODBC Based on CLI Developed by Microsoft A driver that takes SQL commands –Translates them to specific DB –Transmits them to particular DB –Receives the result –Returns to the program Each DB manufacturer generally produces the ODBC driver for each platform Copyright © 2011 - Curt Hill

7 ODBC Again Like any driver, the goal is to bridge the differences between DBMSs Eg. an application that deals with Oracle through the Oracle ODBC can change to SQL Server by only changing the ODBC The OS will have a ODBC driver manager –It chooses the best of the installed drivers for the DBMS in question Copyright © 2011 - Curt Hill

8 JDBC Java DataBase Connectivity Connects Java appliations with DBMSs Usually just an interface to ODBC from within Java Copyright © 2011 - Curt Hill

9 Some Others ADO – ActiveX Data Object The.NET version is how.NET programs communicate OLE DB – Object Linking and Embedding for DataBases Extends ODBC to allow access to programs that do not accept SQL Such as object databases and spreadsheets DAO – object oriented API Usually for local data sources RDO – remote data objects Uses DAO and ODBC Copyright © 2011 - Curt Hill

10 Finally Each of these described protocols is middleware It sits between an application program and a target database Makes it easier to change databases with changing the application Copyright © 2011 - Curt Hill


Download ppt "Copyright © 2011 - Curt Hill Connectivity Communicating with the Database."

Similar presentations


Ads by Google