August 23, 2018 at 6:48 am
I am querying select * from sys.master_files
in order to know the file sizes of my database files. I wonder what is their metrics of measurement? I mean Byte, KB, MB or GB?
Thanks for your time!
August 23, 2018 at 7:22 am
It's in 8KB pages, so multiply the number in the Size column by 8 and you'll have the size in KB.
See the documentation for that info and more: https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-master-files-transact-sql?view=sql-server-2016
August 23, 2018 at 7:25 am
elea.grig - Thursday, August 23, 2018 6:48 AMI am queryingselect * from sys.master_files
in order to know the file sizes of my database files. I wonder what is their metrics of measurement? I mean Byte, KB, MB or GB?
Thanks for your time!
The size is in 8 K pages - they use that in other size specifications as well. You can usually find what they are using for things like that in the documentation.
sys.master_files (Transact-SQL)
Sue
August 23, 2018 at 7:34 am
elea.grig - Thursday, August 23, 2018 6:48 AMI am queryingselect * from sys.master_files
in order to know the file sizes of my database files. I wonder what is their metrics of measurement? I mean Byte, KB, MB or GB?
Thanks for your time!
This link has the answer to that question.
http://bfy.tw/JXnf
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy