Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 141
  • Last Modified:

reading values of dsn

I have a system dsn called "spw" that connects to sqlserver 7.0, how can I read WHICH SQL server it is using?

thanks
Sopheak
0
sopheak
Asked:
sopheak
1 Solution
 
DrMaltzCommented:
sopheak,

system dsn are stored in the registry.. in a particular folder..

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\<nameofDSN>

Once you find your dsn in the registry, you'll notice a key called SERVER.  That contains your value..

Check out the following article which discusses reading info from the registry..

http://www.vb-world.net/registry/registry2/

Good Luck,

DrMaltz
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now