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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Change Detection/Rollback Required

Author  Topic 

Starting Member

20 Posts

Posted - 2007-07-28 : 03:40:33

My table’s data is deleted by unknown person.
I can detect some thing about it i.e. user name, time, etc of this event?

Is there any way to rollback changes though logs?


Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-07-28 : 04:53:49
1) Restore lastest backup taken before disaster
2) Check out third party tools to rollback from transaction log.

But the real question is, how did an "unknown person" gain access to your data and had permission to delete it?

E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

Master Smack Fu Yak Hacker

2365 Posts

Posted - 2007-07-30 : 10:48:12
Put a trigger on the table to save this information to a log table:
(CONVERT([varchar](100),(((((host_name()+':')+suser_sname())+'(')+user_name())+') - ')+app_name(),(0)))

e4 d5 xd5 Nf6
Go to Top of Page

- Advertisement -