Iteratively Perfecting
A Software Developer's notes along the way
Static Pages
Posts
SQL Server links
C# Links
HTML5 Links
Wednesday, October 14, 2020
Size of Database for SQL Server
SELECT DB_NAME() AS DbName,
name AS FileName,
size/128.0 AS CurrentSizeMB,
size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS INT)/128.0 AS FreeSpaceMB
FROM sys.database_files;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment