sql - How to set Database Audit Specification for all the tables in db -


i need create audit track crud events tables in database , have more 100 tables in db , there way create specification include tables in db ?

p.s : using sql server 2008

change data capture

you can use change data capture functionality mechanism provided sql server 2008.

http://msdn.microsoft.com/en-us/library/bb522489.aspx

note create, update , delete.

triggers , audit tables

even 100 tables, can use single script generate audit tables , necessary triggers. note, not mechanism - slow down control not returned unless trigger execution complete.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -