File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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: 226

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: 226

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: 226

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: List of DSNs
 
Similar Threads
HELP WANTED IMMEDIATELY....
Get the DSN name
JDBC-ODBC Drivers ...Again
List available data sources on a local & a network PC
connections