![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, I have written a DTS package that ends with an ActiveX Script step to rename the Access database file that the package imports from. Executing each step works fine but when I run the whole package, the final step fails, presumably because the Access database is still open. Is there a was to reference the connections in the script so that I can disconnect it first? Regards, Waldy. |
#3
| |||
| |||
|
|
In the workflow properties of the DataPump task you can "Close Connection on completion" "Waldy" <waldy (AT) notmail (DOT) com> wrote Hi there, I have written a DTS package that ends with an ActiveX Script step to rename the Access database file that the package imports from. Executing each step works fine but when I run the whole package, the final step fails, presumably because the Access database is still open. Is there a was to reference the connections in the script so that I can disconnect it first? Regards, Waldy. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
O.K. Thanks for that. I have four datapump tasks though, how do I know which one will be executed last? "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:eUUbs2LIFHA.3500 (AT) TK2MSFTNGP14 (DOT) phx.gbl... In the workflow properties of the DataPump task you can "Close Connection on completion" "Waldy" <waldy (AT) notmail (DOT) com> wrote Hi there, I have written a DTS package that ends with an ActiveX Script step to rename the Access database file that the package imports from. Executing each step works fine but when I run the whole package, the final step fails, presumably because the Access database is still open. Is there a was to reference the connections in the script so that I can disconnect it first? Regards, Waldy. |
#6
| |||
| |||
|
|
O.K. Thanks for that. I have four datapump tasks though, how do I know which one will be executed last? "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:eUUbs2LIFHA.3500 (AT) TK2MSFTNGP14 (DOT) phx.gbl... In the workflow properties of the DataPump task you can "Close Connection on completion" "Waldy" <waldy (AT) notmail (DOT) com> wrote Hi there, I have written a DTS package that ends with an ActiveX Script step to rename the Access database file that the package imports from. Executing each step works fine but when I run the whole package, the final step fails, presumably because the Access database is still open. Is there a was to reference the connections in the script so that I can disconnect it first? Regards, Waldy. |
#7
| |||
| |||
|
|
You can control the flow of data pump tasks within DTS using workflow properties. There you can specify what data pump goes first, second, third, and so on. This way you can control what task fires last, and be sure the connection is closed once complete. |
#8
| |||
| |||
|
|
"Simon Worth" <REMOVEFIRST_simon.worth (AT) gmail (DOT) com> wrote in message news:OOub7aMIFHA.2476 (AT) TK2MSFTNGP12 (DOT) phx.gbl... You can control the flow of data pump tasks within DTS using workflow properties. There you can specify what data pump goes first, second, third, and so on. This way you can control what task fires last, and be sure the connection is closed once complete. Hi Simon, I cant find where you do this. Can you point me in the right direction? Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |