Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

create procedure sys.sp_MSget_logical_record_children @tablenick int

    -- Use recursive query to get all articles directly or indirectly below @tablenick
    -- in the logical record hierarchy.
    with children_cte as
        -- start with immediate children of @tablenick
        select art_nickname from dbo.sysmergesubsetfilters
        where join_nickname = @tablenick
        and (filter_type & 2) = 2

        UNION ALL

        -- then recursively get the immediate children of articles selected in previous iteration
        select smsf.art_nickname from dbo.sysmergesubsetfilters smsf, children_cte cc
        where smsf.join_nickname = cc.art_nickname
        and (smsf.filter_type & 2) = 2
    insert into #logical_record_children
        select distinct art_nickname from children_cte

    return 0

Last revision 2008RTM
See also

  sp_MSdrop_rladmin (Procedure)


  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash