Connect to ODBC-source

Connect to ODBC-source

Post by Morten N?rgaar » Sat, 09 Nov 2002 16:54:16



Hi,

    does anyone have a small code-example of how to connect, via JDBC-ODBC,
to a text-file, using its established User-DSN?

    Thank you in advance,

/Morten.

 
 
 

Connect to ODBC-source

Post by Thomas Kellere » Sat, 09 Nov 2002 21:59:09



says...
Quote:> Hi,

>     does anyone have a small code-example of how to connect, via JDBC-ODBC,
> to a text-file, using its established User-DSN?

>     Thank you in advance,

> /Morten.

The url for the connection is "jdbc:odbc:NameOfDataSource"
The driver class is sun.jdbc.odbc.JdbcOdbcDriver

Thomas