Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

reading values of dsn

Posted on 2002-04-19
1
Medium Priority
?
137 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 100 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

972 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