Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Simple Auditing Setup Expand / Collapse
Posted Friday, January 11, 2013 7:04 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, November 16, 2016 8:58 AM
Points: 1,018, Visits: 3,059
I want to setup an auduting system witout buying any 3rd party tools where in i am looking to get details about all databases in the server and last accessed date. Also i want to make sure any backup jobs that access the database for backing up the database should not be considered.
Post #1405992
Posted Tuesday, January 29, 2013 6:25 PM


Group: General Forum Members
Last Login: Monday, November 28, 2016 4:04 PM
Points: 114, Visits: 672
If you need to do this, I would start by firing up profiler and picking the events you are interested in.
Run the trace in the gui and perform a few of actions you are monitoring for to see if they show up in the trace. You will have to stop the trace, change the properties of it and restart the trace to make sure you get all the information you are looking for. Then script out the trace as a SQL script. You will want to put the results to series of several files rolling over a file when it gets to big.
Create some procedure to start the trace and have the procedure run on start up.

RAR or zip the files up on a daily basis.

Post #1413408
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse