Results 1 to 3 of 3

Thread: Create ODBC

  1. #1

    Thread Starter
    Registered User Virus00110's Avatar
    Join Date
    Jul 2002
    Location
    Williamsport, PA
    Posts
    290

    Question 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.

  2. #2
    Frenzied Member PilgrimPete's Avatar
    Join Date
    Feb 2002
    Posts
    1,313
    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

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    England
    Posts
    34
    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
  •  



Click Here to Expand Forum to Full Width