Retrieving ODBC DSN information without creating an ODBC Connection
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I'm trying to retrieve the Datbase Name, Server Name, and, if Oracle, the Net 8 Name set in an ODBC DSN without first opening the ODBC Connection. The idea is for the user to specify an ODBC DSN and the application will get the information about the DSN to open an ADO Connection. The only way that I've found to retrieve this information is to first open the connection using ODBC. This seems like an very inefficient way to get the information. I know that i can retrieve if from the registry, but that way has already been shot down by my supervisor. Preferabley I need to get it from some kind of Win32 API call. Anybody have any idea how to do this? ...