Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSaddoffloadparameter

  No additional text.


Syntax
create procedure sys.sp_MSaddoffloadparameter (
    @offloadserver sysname, /* Name of the target server to offload the agent to */
    @job_id        VARBINARY(16),
    @agenttype     NVARCHAR(20) /* Agent type can either be 'merge' or 'distribution' */
    ) AS

    SET NOCOUNT ON

    /*
    **  Declarations
    */

    DECLARE @command               NVARCHAR(3200)
    DECLARE @retcode               INT

    -- Security check: dbo or sysadmin, dbo can be dbo of the distribution db
    EXEC @retcode = sys.sp_MSreplcheck_subscribe
    IF @retcode <> 0 OR @@ERROR <> 0
    BEGIN
        RETURN 1
    END

    -- initialize variables
    SELECT @command = NULL

    -- call sp_MSremoveoffloadparameter to remove all exisiting instances of the
    -- -offload parameters from the agent command line; the return status
    -- of sp_MSremoveoffloadparameter is ignored
    EXEC sys.sp_MSremoveoffloadparameter @job_id=@job_id, @agenttype=@agenttype

    -- update the agent command line by appending '-Offload ' +
    -- @offloadserver

    UPDATE msdb.dbo.sysjobsteps
       SET command = command + N' -Offload ' + @offloadserver
     WHERE job_id = @job_id
       AND LOWER(subsystem collate SQL_Latin1_General_CP1_CS_AS) = LOWER(@agenttype collate SQL_Latin1_General_CP1_CS_AS)

    RETURN 0

 
Last revision 2008RTM
News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash