CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Run time DSN

  1. #1
    Guest

    Run time DSN

    Any ideas how to register SYSTEM DSN in run time?


  2. #2
    Join Date
    Aug 1999
    Posts
    10

    Re: Run time DSN

    System DSNs are stored in a registry:

    <strong>HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI.</strong>

    This key structure has subkeys (which are DSNs) using RegQueryValueEx API you should be able to get your DSNs.

    <strong>Serge</strong>
    [email protected]

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

Featured