Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSexpire_dynamic_snapshots_affected_by_cleanup

  No additional text.


Syntax
create procedure sys.sp_MSexpire_dynamic_snapshots_affected_by_cleanup
as
begin

    -- if at a publisher, invalidate all affected dynamic snapshots.
    if exists (select * from dbo.sysmergepublications where publisher_db = db_name() and UPPER(publisher) = UPPER (publishingservername()))
    begin
        delete from dbo.MSmerge_dynamic_snapshots where partition_id
        in
        (
            select gpm.partition_id
            from #oldgens og join dbo.MSmerge_generation_partition_mappings gpm
            on og.gen = gpm.generation		    	
            and og.coldate > dbo.MSmerge_dynamic_snapshots.last_updated
        )

        delete from dbo.MSmerge_dynamic_snapshots where last_updated <
        (
            select max(og.coldate)
            from #oldgens og join dbo.MSmerge_generation_partition_mappings gpm
            on og.gen = gpm.generation
            and gpm.partition_id = -1
        )

    end

    return 0
end

 
Last revision 2008RTM
See also

  sp_mergemetadataretentioncleanup (Procedure)
sp_MScleanup_zeroartnick_genhistory (Procedure)
sp_MSdrop_rlcore (Procedure)
sp_MSmerge_subbased_downloadonly_metadatacleanup (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