chapter 13 © 2000 prentice hall chapter 13 accessing the database server: odbc, ole db, and ado...
TRANSCRIPT
![Page 1: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/1.jpg)
Chapter 13
© 2000 Prentice Hall
Chapter 13Accessing the Database
Server: ODBC, OLE DB, and ADO
David M. Kroenke
Database Processing
© 2000 Prentice Hall
![Page 2: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/2.jpg)
Typical Web Server
Page 340Figure 13-1 © 2000 Prentice Hall
![Page 3: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/3.jpg)
Chapter 13
© 2000 Prentice Hall
ODBC
Open Database Connectivity;DBMS-independent means for
processing relational database data– ORACLE– SYBASE– INFORMIX
Page 342
![Page 4: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/4.jpg)
Chapter 13
© 2000 Prentice Hall
ODBC Terminology
• Data source the database, its associated DBMS, operating system, and network platform
• Driver manager intermediary between the application and DBMS drivers
• Driver processes ODBC requests and submits SQL statements to a data source
Page 343
![Page 5: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/5.jpg)
Role of ODBC Standard
Page 340Figure 13-2 © 2000 Prentice Hall
![Page 6: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/6.jpg)
ODBC Architecture
Page 343Figure 13-5 © 2000 Prentice Hall
![Page 7: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/7.jpg)
Chapter 13
© 2000 Prentice Hall
Conformance Levels
• ODBC concerned with API application program interface
• SQL– Minimum– Core– Extended
Page 344
![Page 8: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/8.jpg)
Chapter 13
© 2000 Prentice Hall
ODBC Data Source Types
• File shared among database users• System local to a single computer• User only available to the user
who created it
Page 346
![Page 9: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/9.jpg)
Chapter 13
© 2000 Prentice Hall
OLE DB
Object Linking and Embedding Database;
Provides an object-oriented interface to data of almost any type and used as an interface to ODBC and non-relational data
Page 348
![Page 10: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/10.jpg)
Chapter 13
© 2000 Prentice Hall
Object Terminology
• Abstraction a generalization of something
• Method actions that an object can perform
• Property a characteristic of a recordset abstraction
• Collection object that contains a group of other objects
Page 348
![Page 11: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/11.jpg)
Role of OLE DB
Page 341Figure 13-3 © 2000 Prentice Hall
![Page 12: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/12.jpg)
OLE DB Goals
Page 349Figure 13-10 © 2000 Prentice Hall
![Page 13: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/13.jpg)
OLE DB Data Providers
Page 350Figure 13-11 © 2000 Prentice Hall
![Page 14: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/14.jpg)
Chapter 13
© 2000 Prentice Hall
ADO
Active Data Objects;an interface that enables
programmers in almost any language (including scripting) to access OLE DB functionality
Page 351
![Page 15: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/15.jpg)
Role of ADO
Page 342 Figure 13-4 © 2000 Prentice Hall
![Page 16: Chapter 13 © 2000 Prentice Hall Chapter 13 Accessing the Database Server: ODBC, OLE DB, and ADO David M. Kroenke Database Processing © 2000 Prentice Hall](https://reader036.vdocuments.mx/reader036/viewer/2022062417/551c45f35503469d6a8b468e/html5/thumbnails/16.jpg)
ADO Object Model
Page 352Figure 13-14 © 2000 Prentice Hall