Transfer Master Stored Procedures Task
The Transfer Master Stored Procedures task transfers one or more user-defined stored procedures between master databases on instances of SQL Server. To transfer a stored procedure from the master database, the owner of the procedure must be dbo.
The Transfer Master Stored Procedures task can be configured to transfer all stored procedures or only specified stored procedures. This task does not copy system stored procedures.
The master stored procedures to be transferred may already exist on the destination. The Transfer Master Stored Procedures task can be configured to handle existing stored procedures in the following ways:
Overwrite existing stored procedures.
Fail the task when duplicate stored procedures exist.
Skip duplicate stored procedures.
At run time, the Transfer Master Stored Procedures task connects to the source and destination servers by using two SMO connection managers. The SMO connection managers are configured separately from the Transfer Master Stored Procedures task, and then referenced in the Transfer Master Stored Procedures task. The SMO connection managers specify the server and the authentication mode to use when accessing the server. For more information, see SMO Connection Manager.
The execution value, defined in the ExecutionValue property of the task, returns the number of stored procedures transferred. By assigning a user-defined variable to the ExecValueVariable property of the Transfer Master Stored Procedures task, information about the stored procedure transfer can be made available to other objects in the package. For more information, see Integration Services (SSIS) Variables and Use Variables in Packages.
The Transfer Master Stored Procedures task includes the following custom log entries:
TransferStoredProceduresTaskStartTransferringObjects This log entry reports that the transfer has started. The log entry includes the start time.
TransferSStoredProceduresTaskFinishedTransferringObjects This log entry reports that the transfer has finished. The log entry includes the end time.
In addition, a log entry for the OnInformation event reports the number of stored procedures that were transferred, and a log entry for the OnWarning event is written for each stored procedure on the destination that is overwritten.
You can set properties through SSIS Designer or programmatically.
For information about the properties that you can set in SSIS Designer, click one of the following topics:
For information about programmatically setting these properties, click the following topic:
For more information about how to set these properties in SSIS Designer, click the following topic: