Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

ms sql database data size

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'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ms #sql #database #data #size
ADD COMMENT
Topic
Name
3+9 =