dbTalk Databases Forums  

Copy DTS to new server - problem

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


Discuss Copy DTS to new server - problem in the microsoft.public.sqlserver.dts forum.



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

Default Copy DTS to new server - problem - 09-25-2006 , 06:39 AM






Hello,
I've written a DTS to copy selected objects (stored
procs/tables/functions etc - data from tables also) over from a source
database to a destination database. I'm using 'Copy SQL Server Objects Task'
to do the actual transfer. The problem is that I need to get this DTS from
the development region to a client site (different network - different server
names).

I save the package as a .DTS file and try to import it onto the client's
server - when I change the source and destination server/database names, all
the objects that I had selected (checked) become unchecked.

Is there another way to do this?
Thanks!

Reply With Quote
  #2  
Old   
Mayur
 
Posts: n/a

Default RE: Copy DTS to new server - problem - 09-25-2006 , 08:31 AM






Hi Bob,

Its going to be happen because you are changing the ServerName & DBName. SQL
Server will repopulate the objects according the new instance.

You can work around by changing the connection properties run-time using
ActiveX Script Task. I guess you have same object name ( ie. tables, SPs ext
) on both the server ( Source as well Destination ).

It will be look like...

Function Main()
dim Con, pkg

set pkg = DTSglobalvariables.parent
set Con = pkg.connections("your sql connection name")

Con.datasource = "newdatasouce"
Con.Catalog = "newdatabasename"
Con.UserID = "UserID"
Con.Password = "pwd"

Main = DTSTaskExecResult_Success
End Function



--
Knowledge is not Power !!!
But When its acted upon then its Power !!!


"Bob" wrote:

Quote:
Hello,
I've written a DTS to copy selected objects (stored
procs/tables/functions etc - data from tables also) over from a source
database to a destination database. I'm using 'Copy SQL Server Objects Task'
to do the actual transfer. The problem is that I need to get this DTS from
the development region to a client site (different network - different server
names).

I save the package as a .DTS file and try to import it onto the client's
server - when I change the source and destination server/database names, all
the objects that I had selected (checked) become unchecked.

Is there another way to do this?
Thanks!

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.