The Job object exposes the attributes of a single SQL Server Agent job.
A SQL Server Agent job is a scheduled series of executable steps. Jobs are typically used to automate administrative tasks performed against a Microsoft® SQL Server™ database. With SQL Server version 7.0, jobs can contain multiple steps with branch logic based on the success or failure of any individual step. A SQL Server 7.0 job can contain one or more schedules setting run times for the task defined by the steps of the job.
With the Job object, you can:
The Name property of a Job object uses the SQL Server data type sysname. The string must be unique for all jobs defined on a server running SQL Server.
Using SQL-DMO and the Job object, you must create a SQL Server Agent job before you can add job steps to it. A job must have at least one job step and a target server to be executable by SQL Server Agent.
After a SQL Server Agent job has at least one step and an execution target, you can use the Start method of the Job object to execute the job. To schedule the job for execution by SQL Server Agent, use the JobSchedule object.
To create a SQL Server Agent job
To complete the definition of a SQL Server Agent job