Your SlideShare is downloading. ×
0
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
aggie.ppt
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

aggie.ppt

511

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
511
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
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. ODBC and JDBC Aggie Hoversten CSCI 397-16 Fall 1999
  • 2. Overview
    • ODBC and JDBC
      • Why was there a need?
      • Introduction
      • Architecture
      • Examples in use
      • Pros and Cons
  • 3. Why the need for ODBC/JDBC?
    • DataBase Management Systems (DBMS)
    • Access to multiple DBMSs
    • Client/Server computing
  • 4. ODBC/JDBC ODBC/JDBC User Client Machine SQL DBMS DBMS
  • 5. Introduction to ODBC
    • Open DataBase Connectivity (ODBC)
    • Microsoft created in 1992
    • Different programming languages use ODBC to access different DBMSs.
  • 6. ODBC Architecture Client Application ODBC Driver Manager SQL Server ODBC Driver Oracle ODBC Driver DB2 ODBC Driver Informix ODBC Driver SQL Server Data Source Oracle Data Source DB2 Data Source Informix Data Source Generic Vertical Custom
  • 7. ODBC Example Oracle DB2 ODBC ODBC ODBC Insurance company Financial company Human Resources Dept. w/client machines SQL Server
  • 8. Introduction to JDBC
    • Java DataBase Connectivity (JDBC)
    • Sun Microsoft created in 1996
    • JDBC is similar to ODBC
    • Java uses JDBC to connect to different DBMSs.
  • 9. JDBC Architecture Client Application with JDBC API JDBC Driver Manager JDBC to ODBC Driver Driver to Sybase Driver to DB2 Driver to Oracle MS SQL Server Sybase SQL Server DB2 Data Source Oracle Database
  • 10. JDBC Driver Quartet Client Application JDBC Driver Manager JDBC Drivers ODBC Driver Native Database API Net Protocol Data Data Data Data Type 1 Type 2 Type 3 Type 4
  • 11. ODBC Pros and Cons
    • Pros:
      • Highly efficient performance
      • No excessive memory
      • Understands many different programming languages
      • Drivers available for 55 DBMSs
      • Most widely used
      • The standard
    • Cons:
      • Difficult to learn and code
      • Few comands, but complex options
  • 12. JDBC Pros and Cons
    • Pros:
      • Methods are simple and intuitive
      • Codes is easy to learn and program
      • Automatically installable
      • Portable
    • Cons:
      • Only for Java
  • 13. Sumarry
    • ODBC and JDBC allow the client machine to connect to any DBMS on any platform.
    • Developers are not restricted.
    • Users and businesses have more control and choices of DBMSs.
  • 14. References
    • The Microsoft Corporation , <http://www.microsoft.com/data/odbc>
    • Microsoft ODBC 3.0 Software Development Kit and Programmer’s Reference . Microsoft Press 1997
    • B. Whiting, B. Morgan, and J. Perkins, ODBC Programming . Sams Publishing
    • Sun Microsystem Corporation , <http://www.javasoft.com/products/jdbc/index.html/>
    • C. Horstmann, and G. Cornell, Core Java - Volume II Advanced Features . Sun Microsystems Press 1998
    • K Siyan, and J. Weaver, Inside Java . New Riders Publishing 1997

×