Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MScheck_blob_filter_columns

  No additional text.


Syntax
-- Requires Certificate signature for catalog access
create procedure sys.sp_MScheck_blob_filter_columns @pubid uniqueidentifier
                                        , @use_partition_groups smallint
                                        , @can_use_partition_groups bit output
as

    declare @retcode int
    , @nickname int
    , @objid int
    , @objname sysname

    select top 1 @nickname = nickname
                , @objid = objid
    from dbo.sysmergearticles
    where pubid = @pubid
    and (    (subset_filterclause is not null and rtrim(ltrim(subset_filterclause)) <> '')
        or exists (select * from dbo.sysmergesubsetfilters where art_nickname = nickname or join_nickname = nickname)
        )
    order by nickname

    while @nickname is not null
    begin

        if exists    (
                        select * from sys.columns sc
                        where object_id = @objid and
                        --((sys.fn_IsTypeBlob(sc.system_type_id,sc.max_length) = 1) or sc.system_type_id = 240) -- 240 CLR-UDTs
                            (
                              sc.system_type_id in (type_id('image'), type_id('text'), type_id('ntext'), type_id('xml'))
                              or sc.max_length = -1
                              or sc.system_type_id = 240    -- CLR-UDTs
                            )
                        and
                        (    exists (select * from dbo.sysmergearticles where nickname = @nickname
                                and sys.fn_MSisfilteredcolumn(subset_filterclause, sc.name, @objid) = 1)
                            or exists (select * from dbo.sysmergesubsetfilters where (art_nickname = @nickname or join_nickname = @nickname)
                                and sys.fn_MSisfilteredcolumn(join_filterclause, sc.name, @objid) = 1)
                        )
                    )
        begin
            set @can_use_partition_groups = 0

            if @use_partition_groups in (1,2)
            begin
                select @objname = object_name(@objid)
                raiserror(22518, 16, -1, @objname)
                return 1
            end
        end

        -- Check the next article

        select top 1 @nickname = nickname
                , @objid = objid
        from dbo.sysmergearticles
        where pubid = @pubid
        and (    (subset_filterclause is not null and rtrim(ltrim(subset_filterclause)) <> '')
            or exists (select * from dbo.sysmergesubsetfilters where art_nickname = nickname or join_nickname = nickname)
            )
        and nickname > @nickname
        order by nickname

        if @@rowcount = 0
            set @nickname = NULL
    end

    return 0

 
Last revision 2008RTM
See also

  sp_MScheck_dynamic_filters (Procedure)
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