Solved

Programmly remove User DSN?

Posted on 1998-11-17
2
144 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
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…

776 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