![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |