Solved

Programmly remove User DSN?

Posted on 1998-11-17
2
140 Views
Last Modified: 2009-03-03
I created an User DSN in my vb program to an Access database through ODBC.  Now I want to remove/close/disconnect the DSN.  How can I do that? Appreaciate your input.  Thank you.
0
Comment
Question by:luming
  • 2
2 Comments
 
LVL 14

Expert Comment

by:waty
ID: 1445253
You have to remove all the entries in the registry

HKEY_LOCAL_MACHINE
\Software\ODBC\Odbc.ini\ODBC Data Source -> here is your DSN, you can remove it

\Software\ODBC\Odbc.ini\YourDSN -> here are all the configuration of the DSN. Remove it also
0
 
LVL 14

Accepted Solution

by:
waty earned 120 total points
ID: 1445254
You have to remove all the entries in the registry

HKEY_LOCAL_MACHINE
\Software\ODBC\Odbc.ini\ODBC Data Source -> here is your DSN, you can remove it

\Software\ODBC\Odbc.ini\YourDSN -> here are all the configuration of the DSN. Remove it also

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

757 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

17 Experts available now in Live!

Get 1:1 Help Now