Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MS_replication_installed

  No additional text.


Syntax


-- Name: sp_MS_replication_installed

-- Descriptions:

-- Parameters: as defined in create statement

-- Returns: 0 - success
--          1 - Otherwise

-- Security:
-- Requires Certificate signature for catalog access

create procedure sys.sp_MS_replication_installed
as
    set nocount on
    declare @isinstalled int
    select @isinstalled = 0
    declare @retcode int

    EXECUTE @retcode = master.dbo.xp_instance_regread 'HKEY_LOCAL_MACHINE',
        'SOFTWARE\Microsoft\MSSQLServer\Replication',
        'IsInstalled',
        @param = @isinstalled OUTPUT

    IF ( @retcode <> 0 ) or ( @@ERROR <> 0 )
    begin
        raiserror (21028, 16, -1)
        return (0)
    end

    if (@isinstalled is null or @isinstalled = 0)
    begin
        raiserror (21028, 16, -1)
        return (0)
    end

    return (1)

 
Last revision 2008RTM
See also

  sp_adddistributiondb (Procedure)
sp_adddistributor (Procedure)
sp_addmergepullsubscription (Procedure)
sp_addpullsubscription (Procedure)
sp_MSrepl_adddistpublisher (Procedure)
sp_MSrepl_addsubscriber (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