Re: setting DTS Global Variables
- From: Darren Green <darren.green@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Oct 2005 19:50:17 +0100
Leo wrote:
I have a Text File which I Import through a DTS package
That is all fine and dandy, but what I would like to do is set the destination of the file to a different server through code. So if I specify server X and database XX in code then the dts will dump the file there, if i specify server X (same server) and database YY (different database) it will dump the table there. Any ideas on how to do this?
I have something that I created, where I have some code with two variables (server and database). In the DTS steps I execute that the first. Then once I set those variables, the second thing to execute is a dynamic properties task which takes the Server name and database name in the connection from its previous task (so from my variables). Then I have the actual tranformation which happens. But the thing is even though the server and database are properly changed in the SQL server, the transformation doesn't change, therefore it's still executing against the previous database (not against the one I defined in the variable)
Any ideas? thanks
Leo
Changing the DataPump Source and Destination Tables (http://www.sqldts.com/default.aspx?213)
-- Darren Green http://www.sqldts.com http://www.sqlis.com .
- Follow-Ups:
- Re: setting DTS Global Variables
- From: Leo
- Re: setting DTS Global Variables
- References:
- setting DTS Global Variables
- From: Leo
- setting DTS Global Variables
- Prev by Date: Oracle Import Package Runs fine in designer, but when run with dtsrun in a schedule sql agent job it failes.
- Next by Date: Re: Dynamic Properties Task in 2005?
- Previous by thread: setting DTS Global Variables
- Next by thread: Re: setting DTS Global Variables
- Index(es):
Relevant Pages
|