Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading odbc entries in vbscript

Status
Not open for further replies.

Programmer1974

Programmer
Joined
Feb 19, 2004
Messages
33
Location
US
Greetings!

I have a program that I'm trying to write where I need to allow the user to select an ODBC entry that is already defined. For instance, if I go to DataSources(ODBC) and I see "ODBC1", "ODBC2", and "ODBC3" as system DSNs, I want to show a list of these three options. How can this be easily done?

I know there is the INI file: ODBC.ini that I could read, but from looking at other posts, the DSN entries can also be accessed from the registry. All the examples that I've found show adding entries, not reading. So, could someone please provide some examples of reading the DSN entries from the registry?

Thank you much!
 
Do a keyword search in this forum for stdregprov

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top