![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello all, I have a stored procedure (syntax available on request) which counts the number of records that fits a certain criteria. I would like to know if it is possible that when this stored procedure is called during the execution of a DTS package the "on faliure" would be tripped if the stored procedure returns a value > 0 (i.e. there are records that match the criteria). Does this make sense? -- Thanks Andrew |
#3
| |||
| |||
|
|
You can certainly grab the output variable from the proc, test it and then cause the flow to act a certain way. Have a look here Global Variables and Stored Procedure Parameters (http://www.sqldts.com/default.aspx?234) Multiple Paths in Workflow (http://www.sqldts.com/default.aspx?218) "Whitless" <Whitless (AT) discussions (DOT) microsoft.com> wrote in message news:Whitless (AT) discussions (DOT) microsoft.com: Hello all, I have a stored procedure (syntax available on request) which counts the number of records that fits a certain criteria. I would like to know if it is possible that when this stored procedure is called during the execution of a DTS package the "on faliure" would be tripped if the stored procedure returns a value > 0 (i.e. there are records that match the criteria). Does this make sense? -- Thanks Andrew |
![]() |
| Thread Tools | |
| Display Modes | |
| |