Dear Everyone
I hope you are all safe in these strange times.
I am trying to find the size of the database datafiles, transaction log files and RBS files in my SharePoint database where filestreaming is enabled and I tried to run the query below but I get the size of the RBS files as 0.
Any ideas why?
SELECT
db.name AS DBName,
type_desc AS FileType,
mf.size* 8.0 / 1024 / 1024 AS 'Size In GB'
FROM
sys.master_files mf
INNER JOIN
sys.databases db ON db.database_id = mf.database_id
where db.name not in ('master','msdb','model','temp')
I can find the size in sys.database_files but nothing to join master_files with database_files
Any ideas?
Stay Safe
KY