-
Create ODBC
I'm trying to write a program that after it is installed and the user runs the program for the first time it creates an ODBC DSN. I know there is a way to do this but I'm a little confused on how to get started. I also know that it involves using the ODBC API's, right? Please any help would be great.
-
Don't know much about the ODBD APIs, but you can create your own DSNs using simple Registry API calls.
Create a DSN through the Data Source Administrator, and take a look at the following keys:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
-
Hi,
I have been looking for the exact same thing. I found this:
Link to Planet Source Code
I haven't had time to use it yet but it looks like a good start. There is also a SQL server DSN under the same author.
Hope it helps.
TC