Space usage information for the transaction log
sys.dm_db_log_space_usage Returns space usage information for the transaction log.
Column name
Data type
Description
database_id
smallint
Database ID.
total_log_size_in_bytes
bigint
The size of the log…