How to detect the SQL Server 2005 log file size and database file size
The following line of SQl statement will return the file size for SQL server database log file size and database file size
select file_id, type, name, physical_name, size, max_size from master.sys.database_files
The following are the file size
1 0 master D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf 32000 -1
2 1 mastlog D:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf 24960 -1
Note:
The file size is calculate as
32000*8 /1000 = 256MB
Comments
Post a Comment