May 6, 2009 at 4:04 pm
I need to execute a stored procedure in a job step.
Based on the output of the stored procedure, I need to execute the next job step.
I can get the output in the variable..but how can i control the execution of next job step based on the value in the variable.
Any ideas??
Thanks
May 6, 2009 at 4:13 pm
Double click on the precedence constraint between the two steps, change the Evaluation operation to expression, and then add your check against the variable in the Expression box.
May 6, 2009 at 4:22 pm
I am trying to see in SQL->ServerAgent->Jobs->JobName (Right Click) ->Properties -> then Steps to see the steps.
I am not able to any precendent contraint where I can define it?>
if you could help it would be great!!!
May 6, 2009 at 4:27 pm
My bad. I though you meant in SSIS. This is an SSIS forum so I assumed your SP was being executed in SSIS. Sorry. I don't think there is a real easy way to do this via SQL Agent.
May 6, 2009 at 5:19 pm
yes, You are right..I just start with SSIS for this issue
Anyways Thanks
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply