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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the Server in OLE db provider for sql Server 1

Status
Not open for further replies.

Glowworm27

Programmer
May 30, 2003
587
US
Hello all,

I have a DTS package that I have been working on ,currently set to a test server. Once I am finished with the dts package, and have tested it thourghly I want to move it to the production server.

Is there a way using an active x task to change the Servername on all of the Microsoft OLE db Provider for SQL Server Connection objects to connect to the production server, and not the test server. With out doing it manualy?

I have a few dozen connection objects. and would like to do it programmaticaly?

Thanks IN advance
[Cannon]

George Oakes
Check out this awsome .Net Resource!
 
Sure - you might be better off having a dynamic properties task to do it though.

I usually create a loader for dts packages which changes all the connections in the package at run time (either from t-sql, VB or a dts package) depending on the environment).

If you want to do it in an activex script then see


======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top