Events
Get certified in Microsoft Fabric—for free!
19 Nov, 11 pm - 10 Dec, 11 pm
For a limited time, the Microsoft Fabric Community team is offering free DP-600 exam vouchers.
Prepare nowThis 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
Change tracking records insert, update, and delete activity applied to tracked tables, supplying the details of the changes in an easily consumed relational format. The following functions return information about the changes.
Function | Description |
---|---|
CHANGETABLE (CHANGES) | Returns tracking information for all changes to a table that have occurred since a specified version. |
CHANGETABLE (VERSION) | Returns the latest change tracking information for a specified row. |
CHANGE_TRACKING_MIN_VALID_VERSION() | Returns the minimum version that is valid for use in obtaining change tracking information from the specified table when you are using the CHANGETABLE function. |
CHANGE_TRACKING_CURRENT_VERSION | Obtains a version that is associated with the last committed transaction. You can use this version the next time you enumerate changes by using CHANGETABLE. |
CHANGE_TRACKING_IS_COLUMN_IN_MASK | Interprets the SYS_CHANGE_COLUMNS value that is returned by the CHANGETABLE(CHANGES ...) function. |
WITH CHANGE_TRACKING_CONTEXT | Enables the specification of a change context, such as an originator ID, when an application changes data. |
Events
Get certified in Microsoft Fabric—for free!
19 Nov, 11 pm - 10 Dec, 11 pm
For a limited time, the Microsoft Fabric Community team is offering free DP-600 exam vouchers.
Prepare now