📜  ms sql 数据库数据大小 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:34.134000             🧑  作者: Mango

代码示例1
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'