Basic HTML version of Foils prepared 23 June 1997

Foil 52 Example - Using JDBC-ODBC Bridge - I

From Overview of JDBC and its use with Microsoft Access UC Web Applications Certificate -- June 26 97. by Nancy McCracken(Sangetta Aggarwal, Udayan Parvate, Tom Pulikal)


1 import java.net.URL;
2 import java.sql.*;
3 class simpleselect {
4 public static void main (String args[]) {
5 String url = "jdbc:odbc:my-dsn";
6 String query = "SELECT * FROM emp";
7 try {
8 // Load the jdbc-odbc bridge driver
9 Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
10 // Attempt to connect to a driver. Each one
11 // of the registered drivers will be loaded until
12 // one is found that can process this URL
13 // SEE NEXT FOIL!!

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998