Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Skip step in job

Status
Not open for further replies.

Bell1991

Programmer
Joined
Aug 20, 2003
Messages
386
Location
US
I need to be able to skip a step in a job.

For example, based on the time the step is executing if it is past a certain time - skip the next step and continue on step 5. I know how to check the time - but how do i tell it where to execute next?

Thanks,
-Bell
 
Create a job step that checks your time. Then give it an On Success / On Failure property. In EM, in the job properties, Edit the Step and click the Advanced tab. It should allow you to choose which Step of the job you want it to "skip" to based on Failure or Success.

Hope that helps.



Catadmin - MCDBA, MCSA
"The only stupid question is the one that *wasn't* asked.
 
How would i create the job to check time?

I tried returning a variable to indicate if true/false - but i can't do that.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top