Change tracking is a lightweight alternative to CDC. It records the primary key of the row that has changed and the operation and Artie will then query the source tables to retrieve the row data.This method is recommended if you cannot enable CDC for your database.
Required settings
- Host name
- Port (default is
1433) - Service account
- Database name
- Change tracking enabled for database and tables to replicate
Creating a service account
Creating a service account
Permissions
Permissions
To access the change tracking metadata, the service account must have the following permissions:
-
SELECTpermission on at least the primary key columns on the change-tracked table to the table that is being queried. -
VIEW CHANGE TRACKINGpermission on the table for which changes are being obtained.
Enabling change tracking
Enabling change tracking
In order to enable Change Tracking for SQL Server, you will enable it at the database and table level.
- Enable Change Tracking for your database
- Enable CDC for your tables
Troubleshooting
Change tracking auto-cleanup
Change tracking auto-cleanup