Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

create procedure sys.sp_MSpurgecontentsorphans
    declare @retcode smallint

    create table #oldgens (artnick int, gen bigint)
    create unique clustered index ucOldgens on #oldgens(artnick, gen)

    -- find generations that exist in MSmerge_contents but not in MSmerge_genhistory
    insert into #oldgens (artnick, gen) select distinct tablenick, generation
            from dbo.MSmerge_contents
            where generation <> 0 and generation not in (select distinct generation from dbo.MSmerge_genhistory)

    exec @retcode = sys.sp_MSdelete_specifiedcontentsandtombstone
    drop table #oldgens
    return @retcode

Last revision 2008RTM
See also

  sp_MSdrop_rlcore (Procedure)
sp_MSmerge_metadataupgrade (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