Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
maevr
Posting Yak Master
169 Posts |
Posted - 2009-01-27 : 09:15:19
|
| I hava a database which contains approximately 30 tables. Each table contains many columns.I want to audit changes of the data and store the old value and new value together in a new "Audit" table, how do I do this.My first thought was triggers, but how do I create them to function as I want.Any examples would be great.Thanks in advance.//Maevr |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-01-27 : 09:18:32
|
| yup. you can do this with triggers. but for that you need create seperate triggers on each of 30 tables for insert,update & delete |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-01-27 : 09:35:14
|
| if by any chance you use sql 2008, you can use track changes features. |
 |
|
|
|
|
|