Event driven way to capture changes to azure SQL database changes

MS Techie 2,701 Reputation points
2021-04-08T13:37:47.213+00:00

In on-premises SQL , we have triggers which will run , whenever any SQL data changes .

In Azure SQL , is there any event driven way to capture the data changes in Azure SQL tables
(not polling like Logic app polling azure SQL)

Please help

Azure SQL Database
0 comments No comments
{count} vote

Accepted answer
  1. Alberto Morillo 33,956 Reputation points MVP
    2021-04-08T22:00:44.623+00:00

    Would you consider using Temporal Tables? Please read here.

    You can also use Azure SQL Database Audit to audit only CRUD operations. See example below using PowerShell:

    Set-AzureRmSqlDatabaseAuditing -ResourceGroupName "resourceGroup" -ServerName "SQL Server Name" -DatabaseName "AdventureWorksLT" -StorageAccountName "storageAccount" -AuditActionGroup "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", "FAILED_DATABASE_AUTHENTICATION_GROUP", "BATCH_COMPLETED_GROUP" -AuditAction "UPDATE ON database::[AdventureWorksLT] BY [public]"  -RetentionInDays 60
    

1 additional answer

Sort by: Most helpful
  1. Erland Sommarskog 111.8K Reputation points MVP
    2021-04-08T21:58:31.037+00:00

    You can have triggers in Azure SQL as well.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.