Best way to modify a Client user DSN remotely using VB6

Posted on 2005-03-17
Medium Priority
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.
Question by:abbdan
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
  • 3

Author Comment

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


Author Comment

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.

Accepted Solution

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


you could edit them that way

Author Comment

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.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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 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…
Suggested Courses

752 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