Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Revising ODBC Settings

Status
Not open for further replies.

bgfs

Technical User
Apr 6, 2005
130
GB
I intend to move an SQL database from one server to another (using Backup and restore). Clients connect via ODBC. as there are a large number of clients, does anyone know of an automated process where the ODBC settings can be changed on the client PC's?
 
Create a bat file with the following command. It should update the ODBC settings. then you can push it out to all users with SMS or whatever tool your company uses.

Code:
REM ****** Create new MSSQL connection ***********************

C:\REG UPDATE "HKLM\Software\ODBC\ODBC.INI\YOUR ODBC  NAME\Server=New Server"

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
Thanks I'll give it a Try
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top