TRIGGER AUDIT TABLE SQL SERVER
IF OBJECT_ID('GenerateTriggers','P') IS NOT NULL DROP PROC GenerateTriggers GO CREATE PROC GenerateTriggers @Schemaname Sysname = 'dbo' ,@Tablename Sysname ,@GenerateScriptOnly bit = 1 ,@ForceDropAuditTable bit = 0 ,@IgnoreExistingColumnMismatch bit = 0 ,@DontAuditforUsers NVARCHAR(4000) = '' ,@DontAuditforColumns NVARCHAR(4000) = '' AS SET NOCOUNT ON /* Parameters @Schemaname - SchemaName to which the table belongs to. Default value 'dbo'. @Tablename - TableName for which the procs needs to be generated. @GenerateScriptOnly - When passed 1 , this will generate the scripts alone.. ...