01/05/2012

Calculate the size of log file in Database

To calculate the size of Log file use the follwoing script:

SELECT DB_NAME(database_id) AS DatabaseName,
Name AS Logical_Name,
Physical_Name, (size*8)/1024 SizeMB
FROM sys.master_files
WHERE DB_NAME(database_id) = 'AdventureWorks'
GO



No comments:

Post a Comment