My program has the need to determine all of the registered DSNs for the system (this is set through the ODBC icon in the control panel). Anyone know how to do this (assuming it can even be done).
Thanks
Printable View
My program has the need to determine all of the registered DSNs for the system (this is set through the ODBC icon in the control panel). Anyone know how to do this (assuming it can even be done).
Thanks
All the DSNs are stored in the registry under:
HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ODBC Data Sources
Each DSN is listed as a value under this key. If you need more information on each DSN each DSN is also a key under the ODBC.INI key.
Hope this helps.
:):):)