SQL Audit

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)

2019-10-15 (first published: )

735 reads

Blogs

Daily Coping 5 June 2020

By

I’ve started to add a daily coping tip to the SQLServerCentral newsletter and to...

Use Chocolatey to Install Multiple SQL Server 2019 Instances for Testing

By

I’m working on a project where it’s useful to automate environment setup and teardown...

SQL Server Authentication

By

[MSSQLFUN & Decode ITeS becomes a family of 1500 individuals across the globe. Please...

Read the latest Blogs

Forums

Attunity Oracle Connector Not Showing Up in SSIS Toolbox

By brad.mccollum

I've just about exhausted every effort I can research and absolutely cannot get the...

Covert a string to simple sql datetime format

By Jeff Sims-413169

Can anyone help me out here.  I need to convert strings in a file...

Creating a DB

By Nusc

Hi there, when creating a DB with Auto close= False Auto shrink= True Database...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers