How can I find the space used by a SQL Transaction Log?

Posted by Sean Earp on Server Fault See other posts from Server Fault or by Sean Earp
Published on 2009-06-24T03:05:58Z Indexed on 2012/11/21 5:04 UTC
Read the original article Hit count: 534

Filed under:
|

The SQL Server sp_spaceused stored procedure is useful for finding out a database size, unallocated space, etc. However (as far as I can tell), it does not report that information for the transaction log (and looking at database properties within SQL Server Management Studio also does not provide that information for transaction logs).

While I can easily find the physical space used by a transaction log by looking at the .ldf file, how can I find out how much of the log file is used and how much is unused?

© Server Fault or respective owner

Related posts about sql-server

Related posts about transaction-log