Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSmergesubscribedb

  No additional text.


Syntax

create procedure sys.sp_MSmergesubscribedb(
    @value sysname,
    @create_ddl_triggers bit = 1,
    @whattocreate smallint = 1    -- 1=heavyweight,2=lightweight
    ) AS

    SET NOCOUNT ON

    declare @retcode int

    -- Security Check
    EXEC @retcode = sys.sp_MSreplcheck_subscribe
    IF @@ERROR <> 0 or @retcode <> 0 RETURN(1)

    -- Parameter check: @value
    IF LOWER(@value collate SQL_Latin1_General_CP1_CS_AS) NOT IN ('true','false')
    BEGIN
        RAISERROR(14137,16,-1)
        RETURN(1)
    END

    IF LOWER(@value collate SQL_Latin1_General_CP1_CS_AS) = 'true'
    BEGIN
        execute @retcode = sys.sp_MScreate_mergesystables @whattocreate=@whattocreate
        if @@ERROR <> 0 or @retcode <> 0 return (1)

		if @create_ddl_triggers = 1
        begin
			if exists (select * from dbo.sysmergearticles)
			begin
				execute @retcode= sys.sp_MSrepl_ddl_triggers @type='merge', @mode='add'
				if @@ERROR <> 0 or @retcode <> 0 return (1)
			end
        end
    END

    -- We assume we will do nothing about disabling a subscriber


 
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