Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MShelpmergeselectarticles

  No additional text.


Syntax
create procedure sys.sp_MShelpmergeselectarticles
    @pubid uniqueidentifier
as
    --declare @nofilters              int
    --declare @haspartfilters         int
    --declare @injoinfilters          int
    --declare @grouppartfilterarticles int

    --set @nofilters = 1
    --set @haspartfilters = 2
    --set @injoinfilters = 4
    --set @grouppartfilterarticles = 8

    -- since this is called only when compat level is 90 we can remove conversion of clsid
    -- also removing returning the next_seed since in the 90 identity model next seed is derived seperately.
    select distinct a.name, o.name as source_object, SCHEMA_NAME(o.schema_id) as schema_name, a.artid, pre_creation_command, a.pubid, a.nickname,
        column_tracking, status,
        resolver_clsid,
        conflict_script, conflict_table,
        insert_proc, update_proc, select_proc, destination_object, missing_col_count,
        missing_cols, c.name as guid_col,
        article_resolver, resolver_info, subset_filterclause,
        case when f2.artid is not NULl then 1 else 0 end as has_joins,
        excluded_col_count,
        excluded_cols, destination_owner, identity_support,
        NULL as next_seed, a.range, a.threshold,
        verify_resolver_signature, allow_interactive_resolver, fast_multicol_updateproc, check_permissions,
        case
            when (f1.artid is not NULL or f2.artid is not NULL)
            then (case when datalength(a.subset_filterclause) > 1 then (8|2|4) else (4) end)
            else (case when datalength(a.subset_filterclause) > 1 then (8|2) else (1) end) end
            as article_filter_category,
        case when (f1.artid is not NULL or f2.artid is not NULL) then 1 else 0 end as has_relation_with_joinarticles,
        published_in_tran_pub, aw.logical_record_parent_nickname,
        aw.logical_record_level_conflict_detection, aw.logical_record_level_conflict_resolution,
        aw.partition_options, a.processing_order, a.upload_options, permissions(o.object_id) as permissions_bitmask,
        a.delete_tracking, a.compensate_for_errors,
        a.pub_range,
        sys.fn_GetArticleSchemaVersionGuid(a.artid, @pubid) as maxschemaguidforarticle,
        a.stream_blob_columns, a.preserve_rowguidcol, a.schema_option
        from dbo.sysmergearticles a
            inner join dbo.sysmergepartitioninfo aw on a.artid = aw.artid and a.pubid = aw.pubid
            inner join sys.objects o on o.object_id = a.objid
            left outer join sys.columns c on c.object_id = a.objid and c.is_rowguidcol = 1
            left outer join dbo.sysmergesubsetfilters f1 on a.pubid=f1.pubid and a.nickname=f1.art_nickname
            left outer join dbo.sysmergesubsetfilters f2 on a.pubid=f2.pubid and a.nickname=f2.join_nickname
        where a.pubid = @pubid
        order by a.processing_order, a.nickname

 
Last revision 2008RTM
See also

  sp_MSdrop_rlrecon (Procedure)
sp_MShelpmergearticles (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