I noticed that my database log file has reached 160GBs. My database is in simple recovery mode and I used the following query to see if there are any waiting transactions.
SELECT d.name,d.log_reuse_wait,d.log_reuse_wait_desc
FROM sys.databases d
It returned log_reuse_wait 0 and description 'NOTHING'.
Why is my transaction log growing then?
DBCC OPENTRAN(DB_name)return anything. What is output of Select @@Version – Shanky Apr 16 '15 at 07:00sys.dm_exec_requeststo getsql_handle for the SPID or session_id and put that sql_handle inselect * from sys.dm_exec_sql_textyou would find the query. – Shanky Apr 17 '15 at 05:04