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
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Who inserted/updated row in the table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

krishna_br
Starting Member

India
1 Posts

Posted - 06/20/2013 :  09:08:33  Show Profile  Reply with Quote

I am new to SQL SERVER administration. Last week we faced one problem during the internal testing of a newly developed application. While testing was going on few unwanted rows were inserted in to one table. We could not find from where this data is coming as the trace was not enabled.
Is it possible now to find out which DB user\application was responsible for this?
Can we find the reason by reading the Transaction Log on this particular date or between two dates?

Thank you.

James K
Flowing Fount of Yak Knowledge

3699 Posts

Posted - 06/20/2013 :  15:01:04  Show Profile  Reply with Quote
I don't think it is possible to get this information unless you had some kind of auditing turned on. It would be a very difficult task to read the log file to get this information, if that is possible at all. Log file is geared towards documeting transactions in a form readable by the SQL engine for rollbacks, roll forwards etc.
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2067 Posts

Posted - 06/22/2013 :  10:51:36  Show Profile  Visit jackv's Homepage  Reply with Quote
it is possible to read the active portion of the transaction log using ::fn_dblog - read more on - http://www.sqlserver-dba.com/2012/12/sql-server-read-sql-transaction-logs-with-fn_dblog.html

if you're in a situation to look for the recent DML operations some further ideas on - http://www.sqlserver-dba.com/2012/09/sql-server-last-dml-operation.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
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