Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_flush_commit_table

  No additional text.


Syntax
CREATE PROC sys.sp_flush_commit_table (@flush_ts BIGINT, @cleanup_version BIGINT = NULL) AS
BEGIN
	DECLARE @cleanup_ts BIGINT
	SET		@cleanup_ts = change_tracking_hardened_cleanup_version ()
	
	IF @cleanup_ts > @cleanup_version
		SET @cleanup_ts = @cleanup_version

	DECLARE @start_ts BIGINT
	SET		@start_ts = (SELECT MAX(commit_ts) FROM sys.syscommittab)

	IF @start_ts IS NULL OR @start_ts < @cleanup_ts
		SET @start_ts = @cleanup_ts

	INSERT	sys.syscommittab
	SELECT	*
	FROM	OpenRowset (table SYSCOMMITTABLE, db_id (), @start_ts, 1)
	WHERE	commit_ts <= @flush_ts

	DECLARE @rowcount INT

	IF @@ROWCOUNT > 1000
		SET @rowcount = @@ROWCOUNT
	ELSE
		SET @rowcount = 1000

	SET ROWCOUNT @rowcount

	DELETE sys.syscommittab WHERE commit_ts < @cleanup_ts
END			

 
Last revision 2008RTM
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