dbTalk Databases Forums  

Server & DTS question

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Server & DTS question in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Blasting Cap
 
Posts: n/a

Default Server & DTS question - 07-28-2006 , 04:21 PM






We're having to move SQL to a new server, which must be a new name.

Previously, I had been using an old name, and when the server was
replaced, we just gave the new one the old one's IP and name when we
brought it online.

Is there a way though, for me to make DTS and jobs in SQL "portable"
(for lack of a better word), rather than having to change each & every
DTS job on the server to point to the new server? In my jobs I also
copy tables from one server to another, etc. And on a secondary server,
it refers a number of things back to the first server, by name.

Is there some sort of parameter I can pass to the DTS or Agent jobs to
make it point to the new server, or am I just Out of Luck on being able
to NOT have to change all my DTS's each time we replace one of our servers?

BC


Reply With Quote
  #2  
Old   
David Portas
 
Posts: n/a

Default Re: Server & DTS question - 07-28-2006 , 04:32 PM






Blasting Cap wrote:
Quote:
We're having to move SQL to a new server, which must be a new name.

Previously, I had been using an old name, and when the server was
replaced, we just gave the new one the old one's IP and name when we
brought it online.

Is there a way though, for me to make DTS and jobs in SQL "portable"
(for lack of a better word), rather than having to change each & every
DTS job on the server to point to the new server? In my jobs I also
copy tables from one server to another, etc. And on a secondary server,
it refers a number of things back to the first server, by name.

Is there some sort of parameter I can pass to the DTS or Agent jobs to
make it point to the new server, or am I just Out of Luck on being able
to NOT have to change all my DTS's each time we replace one of our servers?

BC
You can create a UDL file (Microsoft Data Link) connection in the
package. That way you only have to change the connection details in the
one file.

Or you can add a Dynamic Properties task that sets up the connection
based on a config file or environment variable or global variable.

Or you can use an ActiveX script task to set the connection data
source.

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/m...S,SQL.90).aspx
--



Reply With Quote
  #3  
Old   
amish
 
Posts: n/a

Default Re: Server & DTS question - 07-30-2006 , 09:42 AM




David Portas wrote:

Quote:
Blasting Cap wrote:
We're having to move SQL to a new server, which must be a new name.

Previously, I had been using an old name, and when the server was
replaced, we just gave the new one the old one's IP and name when we
brought it online.

Is there a way though, for me to make DTS and jobs in SQL "portable"
(for lack of a better word), rather than having to change each & every
DTS job on the server to point to the new server? In my jobs I also
copy tables from one server to another, etc. And on a secondary server,
it refers a number of things back to the first server, by name.

Is there some sort of parameter I can pass to the DTS or Agent jobs to
make it point to the new server, or am I just Out of Luck on being able
to NOT have to change all my DTS's each time we replace one of our servers?

BC

You can create a UDL file (Microsoft Data Link) connection in the
package. That way you only have to change the connection details in the
one file.

Or you can add a Dynamic Properties task that sets up the connection
based on a config file or environment variable or global variable.

Or you can use an ActiveX script task to set the connection data
source.

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/m...S,SQL.90).aspx
--
In client n/w utility add alias as old machine name for your new
machine name

Regards
Amish Shah



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.