|
-
Nov 25th, 2002, 10:25 PM
#1
Thread Starter
Registered User
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.
-
Nov 26th, 2002, 09:47 AM
#2
Frenzied Member
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
-
Nov 28th, 2002, 05:35 PM
#3
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|