Use DB_Name-- Mention database name to get the details go select name , filename, (growth/1024) as Growth_MB , convert(decimal(12,3),round(sf.size/128.00,2)) as FileSize_MB , convert(decimal(12,3),round(fileproperty(sf.name,'SpaceUsed')/128.00,2)) as SpaceUsed_MB , convert(decimal(12,3),round((sf.size-fileproperty(sf.name,'SpaceUsed'))/128.00,2)) as FreeSpace_MB from dbo.sysfiles sf
Thursday, 19 June 2025
DBA-Database mdf & ldf files size, used space, Free space in MB
Subscribe to:
Post Comments (Atom)
DBA-Practical PostgreSQL Queries for Every DBA
Managing a PostgreSQL database effectively requires a solid understanding of the key queries that help you monitor and maintain its perfor...
-
These are the limitations of triggers in Sql server 1. We can not pass the parameters for triggers like Stores procedure , function et...
-
Identity Column : Identity columns are commonly used as primary keys in database tables. These columns automatically assign a value ...
No comments:
Post a Comment