Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSsetup_function_list_table

  No additional text.


Syntax

-- Requires Certificate signature for catalog access
create procedure sys.sp_MSsetup_function_list_table (@pubid uniqueidentifier) as
begin
    declare @dynamic_filters_function_list nvarchar(500), @dynamic_filters bit

    select @dynamic_filters_function_list = dynamic_filters_function_list,
    @dynamic_filters = dynamic_filters
    from dbo.sysmergepublications
    where pubid = @pubid

    if @dynamic_filters = 1 and @dynamic_filters_function_list is not null and rtrim(ltrim(@dynamic_filters_function_list)) <> ' '
    begin
        insert into #list_of_functions (function_name_with_parens, function_name_without_parens)
        select name, name from sys.columns
        where object_id = OBJECT_ID('dbo.MSmerge_partition_groups')

        -- replace the _FN suffix by ()
        update #list_of_functions set function_name_with_parens = stuff (function_name_with_parens, (datalength(function_name_with_parens)/2) - 2, 3, '()')
        update #list_of_functions set function_name_without_parens = stuff (function_name_without_parens, (datalength(function_name_without_parens)/2) - 2, 3, '')

        delete from #list_of_functions
        where REPLACE(REPLACE(REPLACE(REPLACE(UPPER(@dynamic_filters_function_list collate SQL_Latin1_General_CP1_CS_AS), char(0x20),''), char(0x09),''), char(0x0D),''), char(0x0A),'')
        not like UPPER('%' + function_name_with_parens + '%')

        insert into #list_of_functions (function_name_with_parens, function_name_without_parens)
        select db_name() + '.' + function_name_with_parens, function_name_without_parens
        from #list_of_functions

        -- Note that if the dbo.MSmerge_partition_groups has suser_name_fn and user_name_fn, and this particular publication only
        -- uses user_name(), we will erroneously also leave suser_name() in the temp table. But that is not a problem since we won't
        -- find any table that has that function in its filter.

    end

    return 0

end

 
Last revision 2008RTM
See also

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