Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 What Queries was Run?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-09-28 : 06:51:25
Rick writes "Hello,

A table was deleted from one of the databases that I use. The contents of the table were deleted- not the table itself. This could have been done with a "delete tablename" query. So I want to see what queries were run. I can't ask the users since this should not of been done.

Any method at all is acceptable. I need to find this out as soon as possible. Thank you."

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-09-28 : 07:18:54
There is no in-build audit trail like that...unless you have made efforts to explicitly keep track of such things.

Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-09-28 : 08:23:12
Run Profiler
Also refer
http://www.mindsdoor.net/SQLAdmin/sp_nrInfo.html

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-09-28 : 08:26:05
A Log Reader (like Lumicent(SP?)) might enable you to review the transaction log - which in turn might allow you to see when it happened, and what else was going on at the same time, which might lead to diagnosing who/what etc.

However, it is better to build auditing in to your application to facilitate this sort of after-the-fact detection, as Harsh described.

Kristen
Go to Top of Page
   

- Advertisement -