Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSmerge_gen_articlecolumnrowset

  No additional text.


Syntax

create procedure sys.sp_MSmerge_gen_articlecolumnrowset(
@objid int -- objid for table
)
as
    declare @retvalue int, @index int
    declare @columns varbinary(128)
    declare @artid uniqueidentifier
    declare @table_mrgartcol table(artid int NOT NULL, colid smallint NOT NULL)

    declare #article_cursor cursor local fast_forward for
    select distinct artid,columns from dbo.sysmergearticles
    where objid=@objid
    and pubid in
        (select pubid from dbo.sysmergepublications
        where upper(publisher collate SQL_Latin1_General_CP1_CS_AS) = upper(publishingservername() collate SQL_Latin1_General_CP1_CS_AS)
        and publisher_db=db_name())
    order by artid ASC
    for read only

    open #article_cursor

    fetch #article_cursor into @artid, @columns

    while (@@fetch_status<>-1)
    begin
        set @index=1
        while @index<=8*DATALENGTH(@columns)
        begin

            exec @retvalue=sys.sp_MStestbit @bm=@columns, @coltotest=@index
            if @retvalue<>0
                insert into #table_mrgartcol (artid, colid) values (@artid, @index)
            set @index=@index+1
        end

        fetch #article_cursor into @artid, @columns
    end
    close #article_cursor
    deallocate #article_cursor
    return 0

 
Last revision 2008RTM
See also

  sp_MSmerge_altertable (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