Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MScheck_article_order

  No additional text.


Syntax
create procedure sys.sp_MScheck_article_order @pubid uniqueidentifier
as
    declare @objid int
    declare @nickname int
    declare @artname sysname
    declare @processing_order int

    select top 1 @artname = name, @objid = objid, @nickname = nickname, @processing_order = processing_order
    from dbo.sysmergearticles
    where pubid = @pubid
    order by processing_order, nickname

    while @objid is not NULL
    begin
        if exists (select * from sys.foreign_key_columns
                    where parent_object_id = @objid
                    and referenced_object_id in
                        (select objid from dbo.sysmergearticles
                        where pubid = @pubid
                        and (
                                (processing_order = @processing_order and nickname > @nickname)
                                or
                                processing_order > @processing_order
                            )
                        )
                    )
        begin
            RAISERROR(20637, 10, -1, @artname)
            goto Finish
        end

        select @objid = NULL
        select @artname = name, @objid = objid, @nickname = nickname, @processing_order = processing_order
        from dbo.sysmergearticles
        where pubid = @pubid
        and (
                (processing_order = @processing_order and nickname > @nickname)
                or
                processing_order > @processing_order
            )
        order by processing_order, nickname
    end
Finish:
    return 0

 
Last revision 2008RTM
See also

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