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 2012 Forums
 SQL Server Administration (2012)
 Who inserted/updated row in the table

Author  Topic 

krishna_br
Starting Member

1 Post

Posted - 2013-06-20 : 09:08:33

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
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-06-20 : 15:01:04
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
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2013-06-22 : 10:51:36
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
   

- Advertisement -