Solved

reading values of dsn

Posted on 2002-04-19
1
129 Views
Last Modified: 2010-05-02
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
Comment
Question by:sopheak
1 Comment
 
LVL 3

Accepted Solution

by:
DrMaltz earned 25 total points
ID: 6954492
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now