Solved

Programmly remove User DSN?

Posted on 1998-11-17
2
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

729 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