Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Windows ODBC Data Source Names

 
sherif hathout
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sherif,
I think you would have to make a Runtime.exec() call to the operating system to do it.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know how to do this in Windows? (forgetting about Java for the moment)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic