Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSreset_queued_reinit

  No additional text.


Syntax
create procedure sys.sp_MSreset_queued_reinit
(
    @subscriber      sysname,                    -- subscriber server name
    @subscriber_db   sysname,                -- subscribing database name.
    @artid    int                                   -- article id
)
as
begin
    set nocount on
    declare @retcode int
                ,@publication sysname
    
    -- PAL security check
    -- Get publication name using artid
    
    select @publication = p.name
    from syspublications p join sysarticles a on p.pubid = a.pubid
    where a.artid = @artid
    if (@publication is null)
    begin
        return (1)
    end
    exec @retcode = sys.sp_MSreplcheck_pull @publication = @publication
    if @@error <> 0 or @retcode <> 0
    begin
        return (1)
    end
    
    -- Validate @subscriber
    
    
    -- validate @subscriber_db, @artid
    
    if exists (select *
        from dbo.syssubscriptions
        where artid = @artid
            and srvname = UPPER(@subscriber)
            and dest_db = @subscriber_db)
    begin
        
        -- set the reinit flag
        
        update dbo.syssubscriptions
        set queued_reinit = 0
        where artid = @artid
            and srvname = UPPER(@subscriber)
            and dest_db = @subscriber_db
        if (@@error != 0)
            return (1)
    end
    else
    begin
        return (1)
    end
    
    -- all done
    
    return (0)
end

 
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