check size database sql server

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) = 'MY_DB'

https://stackoverflow.com/questions/18014392/select-sql-server-database-size

0 Response to "check size database sql server"

Posting Komentar