Results 1 to 2 of 2

Thread: DSN Properties

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Dubuque, IA
    Posts
    134

    DSN Properties

    In VB6 code, I want to return the name of the server or the IP address that my DSN is currently pointed to. It's a SQL Server DSN and I'm running windows 2000 if that helps. Any ideas at all would be helpful. Thnaks in advance!!!!

    GENE

  2. #2
    Si_the_geek
    Guest
    It's stored in the registry under:

    HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ {DSN name}

    or:
    HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\ {DSN name}

    there's lots of examples on this site for using the registry if you dont already know how

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