Microsoft.SqlServer.TransferJobsTask The namespace contains the classes and enumerations that allow you to copy SQL Server Agent jobs from one instance of SQL Server to another. Contains values used by the property of the to determine how to handle a transfer when the job exists at the destination. Causes the task to fail if the same job exists at the destination. Overwrites the job if the same job exists at the destination. Skips the transfer of a job if the same job exists at the destination. Provides the methods and properties to transfer SQL Server Agent jobs from one instance of SQL Server to another. Initializes a new instance of the class. Called by the run-time engine when a task or container is created, and is passed a to enable the task to create, remove, and check the status of breakpoints. This method is called by the runtime and is not used in code. The breakpoint manager specific to this task. Runs the task. A value from the enumeration. A collection of connections used by the task. A object for locking variables. An object that implements the interface. An object that implements the interface. The transaction object that the container is a part of. This value can be null. Initializes the properties associated with the task. This method is called by the runtime and is not used in code. A collection of connections used by the task. A object for locking variables. An object that implements the interface. An object that implements the interface. A collection that contains events to be raised during execution of the task. A collection of log entries. An object reference tracker. This method is not callable by your application code. To load a package saved as .xml, use the method. The XmlElement that contains the information to be loaded. An object that implements the interface for raising events (errors, warnings, and so on) during persistence. Resumes execution of the task after pausing. The task or container is resumed by the run-time engine. This method is not callable by your application code. To save a package as .xml, use the method. The XML document to save the information to. An object that implements the interface for raising events (errors, warnings, and so on) during persistence. Indicates that the executable needs to suspend. This method is called by the run-time engine. Verifies that the task is correctly configured. A value from the enumeration. A collection of connections used by the task. A object for locking variables. An object that implements the interface. An object that implements the interface. Gets or sets a Boolean indicating whether a task should determine whether breakpoints are enabled. true if the task should determine whether breakpoints are enabled; false if the task can ignore all breakpoints. Gets or sets a String containing the name of the SMO connection manager for the destination database. A String containing the SMO connection manager. Gets or sets a Boolean indicating whether the jobs created at the destination should be enabled. true indicates that the jobs created are enabled. false is disabled. Returns an object containing the number of jobs transfered. An object containing the number of jobs successfully transferred to the destination. Gets or sets a value from the enumeration indicating indicating if the task should fail, overwrite the existing job, or skip the transfer of the job if a job with the same name exists at the destination. A value from the enumeration indicating whether the task should fail, ignore the existing job, or skip the transfer of the job, if a job of the same name exists at the destination. Gets or sets a StringCollection containing the names of the jobs to transfer. A StringCollection containing a list of comma-delimited job names. Gets or sets a String containing the name of the SMO connection manager for the source database. A String that contains the connection string of the SMO connection manager. Gets or sets a Boolean indicating whether tasks should suspend when they encounter a breakpoint. This value is set by the run-time engine for tasks and containers when a breakpoint is encountered. true if the task suspends when it encounters a breakpoint. Gets or sets a Boolean indicating if some or all jobs are transferred. true indicates that all jobs are transferred; false indicates that only those jobs listed in the property are transferred. The exception that is thrown at load time if the persisted name of the XML root node of the task is corrupt.