Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Best way to modify a Client user DSN remotely using VB6

Posted on 2005-03-17
5
Medium Priority
?
331 Views
Last Modified: 2008-03-17
We have a MERANT 3.70 ODBC driver installed on several clients with a same name user DSN to access a Progress database.  I'm needing to modify the user DSN for several clients and I want to batch process the modification.  Can someone put me on track to information on programatically modifying "User DSN".  I should be able to push the user DSN modification program out to the clients using the PsExec in PsTools from Sysinternals but I need to find information on modifying the DSN.  Any help would be appreciated.
0
Comment
Question by:abbdan
  • 3
4 Comments
 
LVL 4

Author Comment

by:abbdan
ID: 13569519
I think I just found my own answer.  Thanks anyways.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q171146
0
 
LVL 4

Author Comment

by:abbdan
ID: 13569594
Actually if someone can show me how to modify a user DSN programatically rather than delete and recreate I'll accept that as an answer.
0
 
LVL 6

Accepted Solution

by:
Marv-in earned 1000 total points
ID: 13570382
the values for the dns are stored in the regestry

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI

you could edit them that way
0
 
LVL 4

Author Comment

by:abbdan
ID: 13570635
I've already found the answer I was needing.

Best way to do it is to make the modifications on your local machine in the ODBC administrator program.  Run Regedit, go to either HKey_LOCAL or HKey_USER depending on if its a system DSN = LOCAL or user DSN = USER.  Highlight the folder in \SOFTWARE\ODBC\ODBC.INI\yourdsnname and export a backup of that to your desktop.  Then push it out to all the clients using the logon script or psexec in pstools.  I appreciate the help anyways but I've resolved this myself.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
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.
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…
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…
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

580 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