Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSlogshippingsysadmincheck

  No additional text.


Syntax
create procedure sys.sp_MSlogshippingsysadmincheck
(
    @mode tinyint = 1   -- 0 = check for installing metadata, 1 = security check for SPs
)
as
begin
    set nocount on
    declare @edition sysname
    
    -- must be sysadmin
    
    if (isnull(IS_SRVROLEMEMBER('sysadmin'),0) = 0)
    begin
        raiserror(21089,16,-1)
        return 1
    end
    
    -- validate @mode
    
    if (@mode not in (0,1))
        return 1
    
    -- skip this block when installing metadata
    -- we will install metadata on all editions
    
    if (@mode != 0)
    begin
        
        -- do Edition check
        -- Log shipping will be supported on Web, Standard, Developer, Enterprise and Workgroup
        
        if (cast(SERVERPROPERTY('EngineEdition') as int) not in (2,3))
        begin
            select @edition = cast(SERVERPROPERTY('Edition') as sysname)
            raiserror(32017, 16, -1, @edition)
            return 1
        end
        
        -- Has log shipping been installed
        
        if object_id(N'msdb.dbo.log_shipping_monitor_alert') is null
        begin
            raiserror(32018, 16, 1)
            return 1
        end
    end
    
    -- all done
    
    return 0
end

 
Last revision 2008RTM
See also

  sp_add_log_shipping_alert_job (Procedure)
sp_add_log_shipping_primary_database (Procedure)
sp_add_log_shipping_primary_secondary (Procedure)
sp_add_log_shipping_secondary_database (Procedure)
sp_add_log_shipping_secondary_primary (Procedure)
sp_can_tlog_be_applied (Procedure)
sp_change_log_shipping_primary_database (Procedure)
sp_change_log_shipping_secondary_database (Procedure)
sp_change_log_shipping_secondary_primary (Procedure)
sp_check_log_shipping_monitor_alert (Procedure)
sp_cleanup_log_shipping_history (Procedure)
sp_delete_log_shipping_alert_job (Procedure)
sp_delete_log_shipping_primary_database (Procedure)
sp_delete_log_shipping_primary_secondary (Procedure)
sp_delete_log_shipping_secondary_database (Procedure)
sp_delete_log_shipping_secondary_primary (Procedure)
sp_help_log_shipping_alert_job (Procedure)
sp_help_log_shipping_monitor (Procedure)
sp_help_log_shipping_monitor_primary (Procedure)
sp_help_log_shipping_monitor_secondary (Procedure)
sp_help_log_shipping_primary_database (Procedure)
sp_help_log_shipping_primary_secondary (Procedure)
sp_help_log_shipping_secondary_database (Procedure)
sp_help_log_shipping_secondary_primary (Procedure)
sp_logshippinginstallmetadata (Procedure)
sp_MSadd_log_shipping_error_detail (Procedure)
sp_MSadd_log_shipping_history_detail (Procedure)
sp_MSget_log_shipping_new_sessionid (Procedure)
sp_processlogshippingmonitorerror (Procedure)
sp_processlogshippingmonitorhistory (Procedure)
sp_processlogshippingmonitorprimary (Procedure)
sp_processlogshippingmonitorsecondary (Procedure)
sp_processlogshippingretentioncleanup (Procedure)
sp_refresh_log_shipping_monitor (Procedure)
sp_resolve_logins (Procedure)
sp_upgrade_log_shipping (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