Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

create procedure sys.sp_addarticle
    @publication					sysname,
    @article						sysname,
    @source_table					nvarchar (386) = NULL,
    @destination_table				sysname = NULL,
    @vertical_partition				nchar(5) = N'false',
    @type							sysname = NULL,
    @filter							nvarchar (386) = NULL,
    @sync_object					nvarchar (386) = NULL,
    @ins_cmd						nvarchar (255) = NULL,
    @del_cmd						nvarchar (255) = NULL,
    @upd_cmd						nvarchar (255) = NULL,
    @creation_script				nvarchar (255) = NULL,
    @description					nvarchar (255) = NULL,
    @pre_creation_cmd				nvarchar(10) = N'drop',
    @filter_clause					ntext    = NULL,
    @schema_option					varbinary(8) = NULL,
    @destination_owner				sysname = NULL,
    @status							tinyint = NULL,
    @source_owner					sysname = NULL,
    @sync_object_owner				sysname = NULL,
    @filter_owner					sysname = NULL,
    @source_object					sysname = NULL,
    @artid							int = NULL OUTPUT,
    @auto_identity_range			nvarchar(5) = NULL,
    @pub_identity_range				bigint = NULL,
    @identity_range					bigint = NULL,
    @threshold						int = NULL,
    @force_invalidate_snapshot		bit = 0,
    @use_default_datatypes			bit = 1,
    @identityrangemanagementoption	nvarchar(10) = NULL,   -- NONE, MANUAL, AUTO
    @publisher						sysname = NULL,
    @fire_triggers_on_snapshot      nvarchar(5) = N'false'
    set nocount on
    DECLARE @cmd nvarchar(4000)
                ,@retcode int
                ,@publisher_type sysname

    EXEC @retcode = sys.sp_MSrepl_getpublisherinfo  @publisher        = @publisher,
                                                                        @rpcheader        = @cmd OUTPUT,
                                                                        @publisher_type    = @publisher_type OUTPUT

    IF @retcode <> 0
        RETURN (@retcode)

    select @publisher = UPPER(@publisher)
            ,@cmd = @cmd + N'sys.sp_MSrepl_addarticle'

    EXEC @retcode = @cmd
                    @artid OUTPUT,

    RETURN (@retcode)

Last revision 2008RTM
See also

  sp_IHCheckSourceTable (Procedure)
sp_IHdroparticle (Procedure)
sp_MSaddschemaarticle (Procedure)
sp_MSdrop_repltran (Procedure)
sp_MSreinit_article (Procedure)
sp_MSrepl_addarticle (Procedure)
sp_MSrepl_adddistpublisher (Procedure)
sp_MStran_altertable (Procedure)
sp_register_custom_scripting (Procedure)


  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash