SQL Job Agent Task

No votes yet
Script File: 

Overview

Script task providing basic manipulation operations for SQL Agent Jobs. You can enable, disable, start, stop or drop a Job. You can also check if job is enabled or the running status of the job. This is the description of the task parameters:

  • ConnectionSQL Server connection manager (Connection).
  • IsJobVariable – if true, Job name is contained in package variable. Otherwise it is explicitly specified (String).
  • JobVariable – package variable containing Job name (String).
  • Job – Job selection (String).
  • Action – action the task performs.
  • ResultVariable – package variable where result is stored.
  • JobStep – optional parameter for StartJob action. Step from, which to start execution.

Requirements

Depends on Microsoft SQL Management Objects (SMO) for Job manipulation.

Depends on CozyRoc Script Task Plus component for implementing parameters user interface.

Library references

  • System
  • System.Data
  • Microsoft.SqlServer.ScriptTask
  • Microsoft.SqlServer.ManagedDTS
  • CozyRoc.SSISPlus
  • Microsoft.SqlServer.ConnectionInfo
  • Microsoft.SqlServer.Smo
  • Microsoft.SqlServer.SmoEnum
  • Microsoft.SqlServer.SqlEnum

ScriptMain

PASS Summit '10

November 8 - 11, 2010 Washington State Convention & Trade Center in Seattle, WA

CozyRoc will be exhibiting at the Premier Conference for SQL SERVER Professionals. Visit CozyRoc at booth #425 and say HI. Register with code CR3D and get $100 off.

CozyRoc SSIS+ has been nominated for the 2010 SQL Server Magazine Community Choice Awards, category "Best Business Intelligence & Reporting Product". Vote Now to help us win this prestigious award.