Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSproxylogshippingmonitorprimary

  No additional text.


Syntax
create procedure sys.sp_MSproxylogshippingmonitorprimary
(
    @mode tinyint -- 1 = add, 2 = delete, 3 = update
    ,@primary_id uniqueidentifier
    ,@primary_server sysname = NULL
    ,@monitor_server sysname
    ,@primary_database sysname = NULL
    ,@backup_threshold int = NULL
    ,@threshold_alert int = NULL
    ,@threshold_alert_enabled bit = NULL
    ,@last_backup_file nvarchar(500) = NULL
    ,@last_backup_date datetime = NULL
    ,@last_backup_date_utc datetime = NULL
    ,@history_retention_period int = NULL
)
with execute as 'dbo'
as
begin
    set nocount on
    declare @retcode int
                ,@linkcmd nvarchar(512)
    
    -- should be executed in msdb
    
    if (db_name() != N'msdb')
    begin
        raiserror (21482, 16, -1, N'sp_MSproxylogshippingmonitorprimary', N'msdb')
        return 1
    end
    
    -- process the monitor record in log_shipping_monitor_primary on the monitor server
    
    select @linkcmd = quotename(sys.fn_MSgetlogshippingmoniterlinkname(upper(@monitor_server))) + N'.msdb.sys.sp_processlogshippingmonitorprimary'
    begin try
        exec @retcode = @linkcmd
            @mode = @mode
            ,@primary_id = @primary_id
            ,@primary_server = @primary_server
            ,@monitor_server = @monitor_server
            ,@monitor_server_security_mode = 0
            ,@primary_database = @primary_database
            ,@backup_threshold = @backup_threshold
            ,@threshold_alert = @threshold_alert
            ,@threshold_alert_enabled = @threshold_alert_enabled
            ,@last_backup_file = @last_backup_file
            ,@last_backup_date = @last_backup_date
            ,@last_backup_date_utc = @last_backup_date_utc
            ,@history_retention_period = @history_retention_period
    end try
    begin catch
        select @retcode = 1
    end catch
    if (@retcode != 0 or @@error != 0)
        return 1
    
    -- all done
    
    return 0
end

 
Last revision 2008RTM
See also

  sp_MSprocesslogshippingmonitorprimary (Procedure)
       



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