jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes Getting Windows ODBC Data Source Names Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Getting Windows ODBC Data Source Names" Watch "Getting Windows ODBC Data Source Names" New topic
Author

Getting Windows ODBC Data Source Names

sherif hathout
Greenhorn

Joined: Nov 02, 2004
Posts: 18
Dear All,
I'd like to know the way of getting Windows ODBC Data Source Names for all the System DSNs that exist in the windows ODBC in the control panel.

My application concerned with getting all added DSN and after that I want to connect to the selected database.

So please advice and let me know the steps of java code that I need to implement this task.

Thanks for help and best regards

Sherif
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

Sherif,
I think you would have to make a Runtime.exec() call to the operating system to do it.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

Do you know how to do this in Windows? (forgetting about Java for the moment)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Windows ODBC Data Source Names