Sql-server – SQL Server log file used pecentage does not drop after multiple backups

sql-server-2005transaction-log

SQL Server 2005

I ran "dbcc SQLPerf(logspace)", then took two log backups, and ran "dbcc SQLPerf(logspace)" again. No change from 48.55% used, even though "dbcc opentran (foo)" says that there are no active open transactions.

Does that mean that there are inactive open transactions that are preventing the log free space from changing after backups?

Thanks.

Best Answer

It could be that a transaction running in another database has a hold on some objects in foo database. Using dbcc opentran(foo) only reports on transactions in foo, not in some other database.

Also, it might help you to read this description (from 2001(!)) on How DBCC SQLPERF (Logspace) Reports Percentage Used at:

https://support.microsoft.com/en-us/kb/281879