Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSsub_cleanup_orphans

  No additional text.


Syntax
create procedure sys.sp_MSsub_cleanup_orphans AS

    /*
    ** Security Check
    */
    -- Internal sp, not granted to public.
    -- Ignore all errrors

    if object_id('MSreplication_objects') is not NULL
    begin
        delete MSreplication_objects where not exists (select * from sys.objects
            where name = object_name)
        if not exists (select * from MSreplication_objects)
            drop table MSreplication_objects
    end

    if object_id('MSsub_identity_range') is not NULL
    begin
        delete MSsub_identity_range where not exists (select * from sys.objects
            where object_id = objid)
        if not exists (select * from MSsub_identity_range)
            drop table MSsub_identity_range
    end

 
Last revision 2008RTM
See also

  sp_addsynctriggers (Procedure)
sp_subscription_cleanup (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