Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Programmly remove User DSN?

Posted on 1998-11-17
2
Medium Priority
?
153 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 480 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
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…
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…
Suggested Courses

721 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