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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS SQL Audit 1

Status
Not open for further replies.

keithfg

Technical User
Joined
Jan 27, 2005
Messages
2
Location
MT
Hi,

I would like to create an audit on a specific table which captures the DML statement (not the results) executed by any user. Is there a system variable which stores such data? I am currently using MSSQL 7 and MSSQL 2000.

Thanks

Keith
 
You can do this using SQL auditing via trace files. A very good article exists on the Microsoft website, it may seem a bit of an overkill but will do exactly what you want.


"I'm living so far beyond my income that we may almost be said to be living apart
 
Thanks for the link. Does this also apply to SQL 7?
 
As far as I know, SQL 2000 is C2 compliant and not SQL 7, but I think all the trace options work the same. Might be a different proc to get things to run on startup of SQL Server, but from what i recall it shouldnt differ too much


"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top