SELECT DB_NAME(database_id) AS [Database Name],[Name] AS [Logical Name],[Physical_Name] AS [Physical Name],((size * 8) / 1024) AS [Size(MB)],[differential_base_time] AS [Differential Base Time]
FROM sys.master_files
WHERE DB_NAME(database_id) IN('XXX')
SELECT DB_NAME(database_id)
AS [数据库名],[Name] AS [逻辑名],[Physical_Name] AS [物理文件],
((size * 8) / 1024) AS [大小(MB)],[differential_base_time] AS [差异北方时间]
FROM sys.master_files WHERE DB_NAME(database_id) IN('这里是你的数据库名')
复制,在sql server management studio里头查询执行 ------解决方案--------------------