Results 1 to 2 of 2

Thread: how do you enumerate system DSNs?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Location
    Phoenix
    Posts
    87
    My program has the need to determine all of the registered DSNs for the system (this is set through the ODBC icon in the control panel). Anyone know how to do this (assuming it can even be done).

    Thanks

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Lightbulb

    All the DSNs are stored in the registry under:

    HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ODBC Data Sources

    Each DSN is listed as a value under this key. If you need more information on each DSN each DSN is also a key under the ODBC.INI key.

    Hope this helps.


    Glenn D
    Development/Analyst

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