Enable SQL Server Change Tracking using T-SQL You can enable the Change Tracking feature for a table to keep track of the rows which are inserted, updated or deleted. Change tracking is a way for SQL Server automatically keep track of the rows that have been inserted, updated or deleted in a table. You have to enable the Change tracking at the database level and also on each table that you want to track. Suppose you want to enable change tracking for your database named APPDB, you can use following tsql script: ALTER DATABASE APPDB SET CHANGE_TRACKING = ON (CHANGE_RETENTION = 7 DAYS, AUTO_CLEANUP = ON) GO Following query list out the database which have Change tracking enabled: SELECT DB_NAME(database_id) [DATABASE_NAME],* FROM sys.change_tracking_databases To enable Change tracking for a particular table use the following script, which enable CT for table named EMP ALTER TABLE dbo.EMP ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = OFF) GO Use the below script to...