Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CHANGE_TRACKING_CURRENT_VERSION (Transact-SQL)

Returns a version that is associated with the last committed transaction. This version can be used when you enumerate changes by using CHANGETABLE.

Topic link iconTransact-SQL Syntax Conventions


CHANGE_TRACKING_CURRENT_VERSION ( )

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();


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.