Click to See Complete Forum and Search --> : Run time DSN


November 18th, 1999, 11:55 AM
Any ideas how to register SYSTEM DSN in run time?

Serge_D
November 18th, 1999, 06:16 PM
System DSNs are stored in a registry:

<strong>HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI.</strong>

This key structure has subkeys (which are DSNs) using RegQueryValueEx API you should be able to get your DSNs.

<strong>Serge</strong>
Serge_Dymkov@vertexinc.com