Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Returns a version that is associated with the last committed transaction. This version can be used when you enumerate changes by using CHANGETABLE.
Transact-SQL syntax conventions
CHANGE_TRACKING_CURRENT_VERSION ( )
bigint
Returns NULL when change tracking is not enabled for the database.
The following example declares the local variable @next_baseline
for storing the current version of tracked changes, and then uses the CHANGE_TRACKING_CURRENT_VERSION()
function to obtain the value for the variable.
DECLARE @next_baseline bigint;
SET @next_baseline = CHANGE_TRACKING_CURRENT_VERSION();
Change Tracking Functions (Transact-SQL)
CHANGETABLE (Transact-SQL)
CHANGE_TRACKING_MIN_VALID_VERSION (Transact-SQL)
Track Data Changes (SQL Server)
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today