Training
Module
Data tracking and synchronization with Azure SQL Database - Training
Azure SQL data tracking module that covers data changes tracking. The module explores tools such as change data capture (CDC) and change tracking.
This 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 Managed Instance
During synchronization, replication agents execute INSERT (Transact-SQL), UPDATE (Transact-SQL), and DELETE (Transact-SQL) statements on replicated tables, which can cause data manipulation language (DML) triggers on these tables to be executed. There are cases when you may need to prevent these triggers from firing or constraints from being enforced during synchronization. This behavior depends on how the trigger or constraint is created.
When creating a new trigger, specify the NOT FOR REPLICATION option of CREATE TRIGGER (Transact-SQL).
For an existing trigger, specify the NOT FOR REPLICATION option of ALTER TRIGGER (Transact-SQL).
Training
Module
Data tracking and synchronization with Azure SQL Database - Training
Azure SQL data tracking module that covers data changes tracking. The module explores tools such as change data capture (CDC) and change tracking.
Documentation
Get Information About DML Triggers - SQL Server
Get Information About DML Triggers
sys.fn_get_sql (Transact-SQL) - SQL Server
sys.fn_get_sql (Transact-SQL)
sys.dm_exec_procedure_stats (Transact-SQL) - SQL Server
sys.dm_exec_procedure_stats (Transact-SQL)