Contents 

Express Agent (Job Builder) Online Help

Prev Page Next Page

Creating Job Steps

A job step is an action that the job takes on a database or a server. Every job must have at least one job step. Job steps can be operating system commands or Transact-SQL statements.

To create a job step

  1. Create a new job or edit an existing job.
     
  2. On the Steps tab, click Add.
     
  3. In the Name box, enter a job step name.
     
  4. In the Language/Subsystem list, click TSQL for a Transact SQL command or CmdExec for an operating system command.
     
  5. In the Command box, enter the Transact-SQL or operating system command, or right-click and select Open File to select a file to import.
     
  6. Select the Options tab and in the Database list, click a database for this job step to use (applies to TSQL commands only).
     
  7. If your command returns a resultset and you want to save the results to a file then enter a full filename in the Output Filename box. Click the Browse button (...) to select a file.
     
  8. In the Success Code box enter a value from 0 to 999999 (applies to CmdExec commands only).
     
  9. Enter retry attempts options if required.
     
  10. Click OK to save the job step.

www.valesoftware.com