aspose file tools*
The moose likes JDBC and the fly likes List of DSNs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "List of DSNs" Watch "List of DSNs" New topic
Author

List of DSNs

Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 225

Hi Ranchers,
In our web application's admin console we wish to provide the user a List of available DSNs in a drop-down box. How can this list be obtained? Is there any other way apart from using JNI? Would appreciate some pointers to code-examples that deal with this.
Thanks for your time,


Debashish
SCJP2, SCWCD 1.4
Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 225

Did any body do such a thing as getting a list of DSNs using Java? Would appreciate a reply.
Paulo Salgado
Ranch Hand

Joined: Jan 18, 2002
Posts: 98
Are you talking about Dataset Names?
Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 225

I am afraid not! I am talking about Data Source Name (DSN) that comes handy to link a database query to a specific database on a server and configurable using the ODBC control panel.
[ July 30, 2003: Message edited by: Debashish Chakrabarty ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: List of DSNs
 
Similar Threads
HELP WANTED IMMEDIATELY....
JDBC-ODBC Drivers ...Again
List available data sources on a local & a network PC
Get the DSN name
connections