• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 139
  • 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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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