Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MScreate_article_repl_views

  No additional text.


Syntax


create procedure sys.sp_MScreate_article_repl_views
    @publication sysname
as
    declare @pubid uniqueidentifier, @artid uniqueidentifier, @retcode int

    -- security check
    exec @retcode = sys.sp_MSreplcheck_publish
    if @retcode<>0 or @@ERROR<>0
        return 1

    select @retcode = 0

    exec @retcode = sys.sp_MSmerge_validate_publication_presence @publication, NULL, NULL, @pubid output
    if @retcode <> 0 or @@error <> 0
        return 1

    declare artidcursor CURSOR LOCAL FAST_FORWARD FOR
    select artid from dbo.sysmergearticles where pubid = @pubid
    FOR READ ONLY

    open artidcursor
    fetch artidcursor into @artid
    while (@@fetch_status <> -1)
    begin

        exec @retcode = sys.sp_MScreate_article_repl_view @pubid, @artid
        if @@ERROR<>0 OR @retcode<>0
        begin
            select @retcode = 1
            goto error
        end

        fetch next from artidcursor into @artid
    end

error:
    close artidcursor
    deallocate artidcursor
    return @retcode

 
Last revision 2008RTM
See also

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