Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Simple Auditing Setup Expand / Collapse
Author
Message
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: Tuesday, August 26, 2014 9:24 AM
Points: 1,000, Visits: 2,979
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
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, August 6, 2014 9:43 PM
Points: 111, Visits: 613
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