Hi @Sudip Bhatt ,
I tried with your query and could only get the default trace which does not include who modified a row in a table from my side.
In order to find out who update the table, you could try with below options:
- Try and read the Transaction Logs to see what happened.
- Start trace in SQL Server profiler and checked events(TSQL-SQL:BatchCompleted,SQL:BatchStarting,SQL:StmtCompleted and SQL:StmtStarting)(Recommended).
- Create a trigger and track the username into a log table. (SELECT APP_NAME() or SELECT program_name from sys.dm_exec_sessions where session_id=@@SPID).
- Try with SQLAudit functionality which will give you some great granualar information about who is touching your tables, and the commands that are being executed.
- Change Data Capture (CDC).
- Third-part tool like ApexSQL Log.
You could refer more details in How to find who changed a table value in SQL Server 2014?.
Best regards
Melissa
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hot issues November--What can I do if my transaction log is full?--- Hot issues November
Hot issues November--How to convert Profiler trace into a SQL Server table -- Hot issues November