Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MScheck_allparents_wellpartitioned

  No additional text.


Syntax
create procedure sys.sp_MScheck_allparents_wellpartitioned
@pubid uniqueidentifier, @nickname int, @publication sysname, @article_name sysname as
begin
    declare @parent_articles table (join_nickname int)
    declare @non_well_partitioned_parent sysname;
    -- Use recursive query to get all articles directly or indirectly above @nickname
    -- in the join filter hierarchy.
    with parents_cte (join_nickname) as
    (
        -- start with immediate parents of @nickname
        select join_nickname from dbo.sysmergesubsetfilters
        where art_nickname = @nickname
        and pubid = @pubid
        and (filter_type & 1) = 1

        UNION ALL

        -- then recursively get the immediate parents of articles selected in previous iteration
        select smsf.join_nickname from dbo.sysmergesubsetfilters smsf, parents_cte cc
        where smsf.art_nickname = cc.join_nickname
        and smsf.pubid = @pubid
        and (smsf.filter_type & 1) = 1
    )
    insert into @parent_articles
    select distinct join_nickname from parents_cte

    select top 1 @non_well_partitioned_parent = sma.name
        from dbo.sysmergearticles sma join dbo.sysmergepartitioninfo smpi
        on sma.pubid = smpi.pubid
        and sma.artid = smpi.artid
        and sma.pubid = @pubid
        and smpi.pubid = @pubid
        and sma.nickname in (select join_nickname from @parent_articles)
        and (smpi.partition_options = 1 or smpi.partition_options = 0)
        order by sma.nickname desc

    if @non_well_partitioned_parent is not null
    begin
        raiserror(21582, 16, -1, @article_name, @publication, @non_well_partitioned_parent)
        return 1
    end

    return 0
end

 
Last revision 2008RTM
See also

  sp_MSdrop_rladmin (Procedure)
sp_MSvalidate_wellpartitioned_articles (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