The transaction log file size is nearing 100% on one database. I run the below and both return 0 so no active transaction running.
The last query tells me that the database is in SIMPLE mode, but 'ACTIVE_TRANSACTION' is returned in log_reuse_wait_desc column.
However, I cannot see any running transaction! I have tried querying sys.dm_tran_database_transactions but do not see any transaction for this specific database.
How do I find this transaction?
SELECT @@TRANCOUNT;
SELECT XACT_STATE();
SELECT name, recovery_model_desc, log_reuse_wait_desc
FROM sys.databases;