Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Getting the list of ODBC Data Sources


2 replies to this topic

bjh

bjh
  • Members
  • 25 posts

Posted 19 June 2001 - 15:01

I have to build a custom dialog that displays a list
of the defined ODBC Data Sources (User defined and
system defined). The user has to choose one of them
and the setup takes its name and saves it in a file.
Any idea about how this can be done?

Thanks,
Jean


tgebbie

tgebbie
  • Members
  • 26 posts

Posted 19 June 2001 - 17:20

ODBC Settings are stored in the register HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\

Here is an example from my system:

[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\axcms32]
"Database"="axcms"
"Description"="INVISIC System 3 SQL Server Data Source"
"Driver"="C:\\WINNT\\System32\\sqlsrv32.dll"
"LastUser"="cmsuser"
"Server"="platinum"
"AnsiNPW"="No"

You then could use the InstallScript Registery functions to query the registery then store their values into a string table.

TDG