September 27, 2013 at 1:29 pm
Friends,
how can i calculate database size with this information:
Processed 8192240 pages for database 'DBOLTP', file 'rm' on file 1. ??
(8192240 *8) = 65537920 (bytes) / 1024 / 1024 = 62MB?
Thanks...
September 28, 2013 at 12:22 pm
Are you looking too deep into a simple problem?
Would this not provide the answer you need?
select name, size from sys.master_files;
September 29, 2013 at 4:27 pm
LOVER OF SQL (9/27/2013)
Friends,how can i calculate database size with this information:
Processed 8192240 pages for database 'DBOLTP', file 'rm' on file 1. ??
(8192240 *8) = 65537920 (bytes) / 1024 / 1024 = 62MB?
Thanks...
Any size given in pages can be converted to binary (1024^3) MB just by dividing by 128.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 29, 2013 at 4:32 pm
That won't allow you to calculate the size of the database files. It will allow you to calculate the total size of the allocated extents in the database. If you want the size of the files, query sys.database_files.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
October 9, 2013 at 12:18 am
saso_yns (10/8/2013)
??? ??? ???? ??????
ahhhhh......Everything seems so much clearer now....:-D
October 14, 2013 at 5:18 am
Execute EXEC sp_spaceused
towards the database, the reserved size shows the exact size of the database (Even the backup size for the database)
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply