SQL Audit

Technical Article

Generic trigger for maintaining the Audit Log

  • Script

This trigger will work even if you don't have the primary key on any table. Mechanism to configure the primary key in config table has been provided. This can be very helpful to solve the system audit requirements without much efforts.

Disclaimer : Audit Log trigger has performance overhead. It’s meant for table which is not frequently updated, deleted or inserted. Please take precaution when creating the trigger on the table having too many columns.

2.33 (3)

You rated this post out of 5. Change rating

2019-10-15 (first published: )

2,107 reads

Blogs

Identify the (Top 20) most expensive queries across your SQL Server using Query Store

By

Script to identify the most expensive queries on your database server using the Query...

Setting Up Always Encrypted

By

In this post we're going to go through the steps to set up Always...

Using Azure Automation and Runbooks to Run Azure SQL Database Maintenance Tasks

By

I’ve been using Azure SQL Database for quite some while and have set up...

Read the latest Blogs

Forums

Build a Better WordPress Archives Page Using MySQL

By Site Owners

Comments posted to this topic are about the item Build a Better WordPress Archives...

Max Managed Instance CPUs

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Max Managed Instance CPUs

Analyze Data with a Serverless SQL pool in Azure Synapse Analytics

By arindamxs

Comments posted to this topic are about the item Analyze Data with a Serverless...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers