April 19, 2006 at 11:13 am
Hi!
I am trying to find out what will be the growing of my database, I will have like 300,000 transaction per day in one of the tables and I need to know what is the size of one record of the table to make an estimated.
Is there a query to do that?
April 19, 2006 at 12:44 pm
you can add the maximum sizes of the different datatypes and that will give you a maximum record size.
If you already have the table created and some data in it you can try:
dbcc showcontig ( 'Table_name' ) with tableresults
Then have a look at:
MinRecSize, MaxRecSize, AvgRecSize
For a conservative approach use MaxRecSize
Cheers,
* Noel
April 19, 2006 at 2:49 pm
Gracias!
Thank you so much!
April 19, 2006 at 3:16 pm
De nada!
You're welcome
* Noel
April 19, 2006 at 5:26 pm
Different slant...
EXEC sp_SpaceUsed yourtablenamehere
--Jeff Moden
Change is inevitable... Change for the better is not.
April 20, 2006 at 3:17 pm
Well, I guess that you can use that, and then use data/rows to get the avgbytes per records
Good Call
* Noel
April 20, 2006 at 5:14 pm
Thanks!
April 20, 2006 at 8:28 pm
Noeld,
Thanks... The reason I suggested it is that it doesn't look like the DBCC command accounts for index size or reserved space. Do you know if it does or is it only record size that it accounts for?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply