JDBC: get all odbc datasource name  
Author Message
cc





PostPosted: 2005-1-12 23:57:00 Top

java-programmer, JDBC: get all odbc datasource name Hi,
I want write a java code for get all odbc datasource name from my operation
system.

Is it possible?

Thanks you,
Carlo


 
Dave Glasser





PostPosted: 2005-1-13 8:25:00 Top

java-programmer >> JDBC: get all odbc datasource name "cc" <email***@***.com> wrote on Wed, 12 Jan 2005 16:56:39 +0100 in
comp.lang.java.programmer:

>Hi,
>I want write a java code for get all odbc datasource name from my operation
>system.
>
>Is it possible?

Not through the JDBC API. You'd have to call native code through JNI.
Google for "SQLDataSources" or look here:

http://odbcrouter.com/api/SQLDataSources.shtml



--
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.

http://qform.sourceforge.net

If you're a musician, check out RPitch Relative Pitch
Ear Training Software.

http://rpitch.sourceforge.net
 
Ann





PostPosted: 2005-1-13 14:31:00 Top

java-programmer >> JDBC: get all odbc datasource name
"Dave Glasser" <email***@***.com> wrote in message
news:email***@***.com...
> "cc" <email***@***.com> wrote on Wed, 12 Jan 2005 16:56:39 +0100 in
> comp.lang.java.programmer:
>
> >Hi,
> >I want write a java code for get all odbc datasource name from my
operation
> >system.

On MS, they are in the registry. It is also possible that there are none.

> >
> >Is it possible?
>
> Not through the JDBC API. You'd have to call native code through JNI.
> Google for "SQLDataSources" or look here:
>
> http://odbcrouter.com/api/SQLDataSources.shtml
>
>
>
> --
> Check out QueryForm, a free, open source, Java/Swing-based
> front end for relational databases.
>
> http://qform.sourceforge.net
>
> If you're a musician, check out RPitch Relative Pitch
> Ear Training Software.
>
> http://rpitch.sourceforge.net