Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_articlecolumn

  No additional text.


Syntax
create procedure sys.sp_articlecolumn (
        @publication sysname,           /* The publication name */
        @article sysname,               /* The article name */
        @column sysname = NULL,         /* The column name */
        @operation nvarchar(5) = N'add'      /* Add or delete a column */
        -- synctran
        , @refresh_synctran_procs bit = 1      -- refresh synctran procs or not
        , @ignore_distributor bit = 0
        -- DDL
        , @change_active int = 0
        , @force_invalidate_snapshot bit = 0    /* Force invalidate existing snapshot */
        , @force_reinit_subscription bit = 0    /* Force reinit subscription */
        , @publisher    sysname = NULL
		-- Peer-To-Peer
		, @internal bit = 0
        )
AS
BEGIN
	DECLARE @cmd			nvarchar(4000)
	DECLARE @cmd2			nvarchar(4000)
	DECLARE @retcode		int
	DECLARE	@publisher_type	sysname
	DECLARE	@publisher_dbms	sysname
	DECLARE	@publisher_version sysname
	
	SET @retcode = 0
	
	EXEC @retcode = sys.sp_MSrepl_getpublisherinfo	@publisher		= @publisher,
													@rpcheader		= @cmd OUTPUT,
													@publisher_type	= @publisher_type OUTPUT
	
	IF @retcode <> 0
		RETURN (@retcode)
		
	SET @publisher = UPPER(@publisher) COLLATE DATABASE_DEFAULT

	IF @publisher_type = N'MSSQLSERVER'
	BEGIN	
		-- Add sp
		set @cmd = @cmd + N'sys.sp_MSrepl_articlecolumn'
	
		EXEC @retcode = @cmd
					@publication,
					@article,
					@column,
					@operation,
					@refresh_synctran_procs,
					@ignore_distributor,
					@change_active,
					@force_invalidate_snapshot,
					@force_reinit_subscription,
					@internal
	END
	ELSE
	BEGIN

		-- Set publisher DBMS and version (for getting default data type mapping)
		SELECT	@publisher_dbms		= 'ORACLE'

		set @cmd2 = @cmd + N'sys.sp_IHgetversion'
		EXEC @retcode = @cmd2
					@publisher	= @publisher,
					@version	= @publisher_version OUTPUT

		IF @retcode != 0 OR @@ERROR != 0
		BEGIN
		    RETURN (1)
		END

		-- Add sp
		set @cmd2 = @cmd + N'sys.sp_IHarticlecolumn'
	
		EXEC @retcode = @cmd2
					@publication,
					@article,
					@column,
					@operation,
					@refresh_synctran_procs,
					@ignore_distributor,
					@change_active,
					@force_invalidate_snapshot,
					@force_reinit_subscription,
					@publisher,
					@publisher_type,
					@publisher_dbms,
					@publisher_version

	END

	RETURN (@retcode)
END

 
Last revision 2008RTM
See also

  sp_MSarticlecol (Procedure)
sp_MSdrop_repltran (Procedure)
sp_MSreinit_article (Procedure)
sp_MSrepl_articlecolumn (Procedure)
sp_MSrepl_changearticle (Procedure)
sp_MSrepl_droparticle (Procedure)
sp_MStran_altertable (Procedure)
sp_repladdcolumn (Procedure)
sp_repldropcolumn (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