Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Getting Installed Driver Information

Keywords: 	 sql drivers

Question:

I'm trying to get detailed info about an ODBC source - the files and parameters it references.

I see you've implemented a function called qDriverList(), which makes a call to SQLGetInstalledDrivers API. Is there another function that return the above info that I want?

Answer:

SQLGetInstalledDrivers simply gets a list of the different drivers that were installed. It sounds like the user wants to get information about a particular DSN (Data Source Name). I believe this information can be accessed from the registry, using our registry functions.

The key (for a USER DSN) can most likely be found.....

   HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\DSNname.......
The key (for a SYSTEM DSN) can most likely be found.....
   HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\odbc.ini\DSNname.......

Article ID:   W14331
Filename:   Get Installed Driver Information.txt