Is it possible to find the number of VLFs in a database's transaction log without running DBCC LOGINFO? DBCC LOGINFO seems a little heavy and verbose when count is the only information my t-sql script needs from it.
Sql-server – How to find the VLF count for a SQL 2005 database without running dbcc loginfo
sql-server-2005
Related Question
- Sql-server – How to run multiple concurrent versions of the application against the same database
- Sql-server – How to disable case sensitivity in SQL Server 2005 for object name (Table name)
- SQL Server – How to Find Databases with Large Number of Virtual Log Files
- Sql-server – Job fails overnight intermittently because of a windows authentication failure to log on to SQL Server. How to troubleshoot
- Sql-server – ‘Tempdb’ is full warning message in SQL Server 2005
- SQL Server – Reporting Rollbacks to Log File
- SQL Server Transaction Log – VLFs Not Being Released (Status 2) on Log Shipped Database
Best Answer
I don't believe there is another way; you could always do something like this: