top of page

Find Size of all Databases in SQL Instance in GB

SELECT

distinct d.name AS 'Database',

SUM(m.size * 8/1024000) OVER (PARTITION BY d.name) AS 'Database Total Size GB'

FROM sys.master_files m

INNER JOIN sys.databases d ON

d.database_id = m.database_id;

7 views0 comments

Recent Posts

See All

SQL Server Profiler Trace

--Import multiple trace file in sql Table. --All the rollover files will be automatically imported --provide number tracefile to capture...

コメント


bottom of page