SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Change Detection/Rollback Required
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Weekend
Starting Member

Pakistan
20 Posts

Posted - 07/28/2007 :  03:40:33  Show Profile  Click to see Weekend's MSN Messenger address  Send Weekend a Yahoo! Message  Reply with Quote
Hi

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?

Wishes
Jawad



SwePeso
Patron Saint of Lost Yaks

Sweden
30282 Posts

Posted - 07/28/2007 :  04:53:49  Show Profile  Visit SwePeso's Homepage  Reply with Quote
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

blindman
Flowing Fount of Yak Knowledge

USA
2365 Posts

Posted - 07/30/2007 :  10:48:12  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000