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,502 reads

Blogs

SQL Server Quickie #46 – SQL Server on Linux

By

Today I have uploaded SQL Server Quickie #46 to YouTube. This time I’m talking...

Giving a Security Webinar this Wednesday

By

If you haven’t already signed up, on November 29, 2023, at 11 AM Eastern...

Write to backup block blob device failed. Device has reached its limit of allowed blocks.

By

Picture this, you’re happily backing up your database to a Azure blob storage until...

Read the latest Blogs

Forums

Logging SQLExceptions

By Casper101

We have a web front-end which I believe in some cases is throwing unhandled...

An Incomplete Window Definition

By Steve Jones - SSC Editor

Comments posted to this topic are about the item An Incomplete Window Definition

A Lack of Privacy in Smart Cars

By Steve Jones - SSC Editor

Comments posted to this topic are about the item A Lack of Privacy in...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers