![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Could someone please help. I have a package that does an export to file based on SQL syntax, if there are no rows to export from the SQL syntax then I populate a GV with 0, after this step I have a piece of activex script to check this variable if it is 0 then stop the package and do not run any other task. The problem is that this causes a failure to flag (although technically it is not failure). Is there an easy way to get around this problem? I should mention that I'm doing this to stop zero length files from creating and there are a lot of other tasks in the package if there are rows to process. (it would seem unnecessary processing) Jase |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi, Could someone please help. I have a package that does an export to file based on SQL syntax, if there are no rows to export from the SQL syntax then I populate a GV with 0, after this step I have a piece of activex script to check this variable if it is 0 then stop the package and do not run any other task. The problem is that this causes a failure to flag (although technically it is not failure). Is there an easy way to get around this problem? I should mention that I'm doing this to stop zero length files from creating and there are a lot of other tasks in the package if there are rows to process. (it would seem unnecessary processing) Jase |
#5
| |||
| |||
|
|
There is a way around this problem, although you have to do some more coding in your Active Script Task. You can enable and disable certain paths in the workflow in code. http://www.sqldts.com/default.aspx?218 gives a complete example, including a sample DTS package. -- Jacco Schalkwijk SQL Server MVP "Jase" <jase74 (AT) hotmail (DOT) com> wrote in message news:399e053d.0408120225.2cfb947b (AT) posting (DOT) google.com... Hi, Could someone please help. I have a package that does an export to file based on SQL syntax, if there are no rows to export from the SQL syntax then I populate a GV with 0, after this step I have a piece of activex script to check this variable if it is 0 then stop the package and do not run any other task. The problem is that this causes a failure to flag (although technically it is not failure). Is there an easy way to get around this problem? I should mention that I'm doing this to stop zero length files from creating and there are a lot of other tasks in the package if there are rows to process. (it would seem unnecessary processing) Jase |
![]() |
| Thread Tools | |
| Display Modes | |
| |