Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auditing in SQL 2005

Status
Not open for further replies.

ousoonerjoe

Programmer
Jun 12, 2007
925
US
Looking for suggestions on setting up Auditing on an SQL 2005 database. There's several different ways to get there and many different theories on what is the 'best' way to do it. We are testing the 'C2 Mode' that comes with SQL 2005, but also looking at adding CreatedBy, CreatDate, ModifiedBy, and ModifyDate to each table and having Triggers populate the fields.

'C2' has a low overhead, but fills a 200 MB file pretty fast. To top it off, it wants to place the files in the install path of SQL Server and covers ALL databases including the Report Services. There are give and takes to all methods. Just curious as to what other ideas are implemented out there and what you think is the best compromise.

--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
 
My problem with that one is Triggers. We have triggers in place already that will UPDATE '1/1/1900' to NULL. I'm already fighting this with the ModifiedBy, createdby, etc plan. The triggers will fire which will cause extra entries.

--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
 
After running the 'C2' trace logs for a while, we've found that it encompasses a LOT more than what is really needed. It includes everything that happens on that server and every database. While we could work with it, it has one down fall, any values passed through are saved as arguments. We need to be able to see the actual values being passed back and forth.

Is there a way to make it so the arguments are displayed as actual values or will we need to just create our own audit tables and update all the calls to make entries to those tables?

--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top