WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ODBC
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2017:07:28:12:58:32
Last Updated: 2000:02:16:09:45:14