all groups > sql server programming > september 2007 >
You're in the

sql server programming

group:

how to audit the sql tables


how to audit the sql tables mohan_doss
9/21/2007 11:34:00 PM
sql server programming: I want to check when and which time the tables are altered by users and
whether they are directly altered in the table or by using the query
analyser. tell option to audit the above information

Re: how to audit the sql tables Jack Vamvas
9/22/2007 7:58:32 AM
There is a simple you could implement: 1)add a Trigger to your tables that
stores the "audit" info in anothe table. You would need to store the object
name,user logged on , date.
If you needed to store the changes they have made , thrn you would need to
look at things such as saving the record initially , and then doing the
update

--

Jack Vamvas
___________________________________
Need an IT job? http://www.ITjobfeed.com/SQL




[quoted text, click to view]

Re: how to audit the sql tables Uri Dimant
9/23/2007 12:00:00 AM
If you are in SQL Server 2005
select name,modify_date from sys.tables

order by modify_date desc





[quoted text, click to view]

Re: how to audit the sql tables Alex Kuznetsov
9/23/2007 7:25:49 AM
[quoted text, click to view]

If it is a one-time investigation and not a permanent need, use the
Profiler.
AddThis Social Bookmark Button