How to list all ODBC Data Sources?
I am trying to make a odbc connection utils. And in this application I want to retrive all my ODBC connections from the system-DSN and display them in my combobox.
But I don't know if there is a sdk function(not MFC) can do this.
Is there a function can do this? If no, how to get the list?
Re: How to list all ODBC Data Sources?
Quote:
Originally Posted by
readsuhang
I am trying to make a odbc connection utils. And in this application I want to retrive all my ODBC connections from the system-DSN and display them in my combobox.
But I don't know if there is a sdk function(not MFC) can do this.
Is there a function can do this? If no, how to get the list?
The system DSN's can be found in the HKLM\Software\ODBC\ODBC.INI\Odbc Data Sources registry key. Thus, you'll have to use registry functions such as RegOpenKeyEx, RegQueryValueEx etc. to retrieve the values.
1 Attachment(s)
Re: How to list all ODBC Data Sources?
Re: How to list all ODBC Data Sources?
Thank you for your reply.