SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DATABASE / TABLE SIZE ESTIMATER


DATABASE / TABLE SIZE ESTIMATER

Author
Message
Amit Jethva
Amit Jethva
SSC Eights!
SSC Eights! (949 reputation)SSC Eights! (949 reputation)SSC Eights! (949 reputation)SSC Eights! (949 reputation)SSC Eights! (949 reputation)SSC Eights! (949 reputation)SSC Eights! (949 reputation)SSC Eights! (949 reputation)

Group: General Forum Members
Points: 949 Visits: 52
Comments posted to this topic are about the item DATABASE / TABLE SIZE ESTIMATER




-- Amit



"There is no 'patch' for stupidity."



Download the Updated SQL Server 2005 Books Online.
msu4web
msu4web
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 196
Hi Amit,

Thanks a lot ! But when I executed this procedure its displaying 0 kb for clustered_index_size_in_kbytes, I tried for different tables which actually has clustered indexes but for all its displaying the same. Other than this its calculating all other parameters. I would appreciate your clarification.

Thanks,
Sam.
Hossam AlFraih
Hossam AlFraih
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 97
Hi Amit,

I used the script on one of my tables it gives me about 600 MB for 400,000 records.
I filled that table with "actual" data (400,000 records) and It is only 150 MB!

Note: There were one clustered index (PK) and 4 non-clustered indexes in that table.

Any explanation for this big different?

Thanks
Hossam AlFraih
Hossam AlFraih
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 97
Hossam AlFraih (6/19/2009)
Hi Amit,

I used the script on one of my tables it gives me about 600 MB for 400,000 records.
I filled that table with "actual" data (400,000 records) and It is only 150 MB!

Note: There were one clustered index (PK) and 4 non-clustered indexes in that table.

Any explanation for this big different?

Thanks


I hope to get a reply very soon.

Thanks
Hossam
Langston Montgomery
Langston Montgomery
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 508
Did you enter data that filled all variable length fields completely? Remember: Amit's code estimates the size of the table based on every variable length field being completely filled in. So, if a variable length field is varchar(200), his script will estimate the size based on that field being completely filled with 200 characters versus, let's say, only 10.

Hossam AlFraih (12/2/2009)
Hossam AlFraih (6/19/2009)
Hi Amit,

I used the script on one of my tables it gives me about 600 MB for 400,000 records.
I filled that table with "actual" data (400,000 records) and It is only 150 MB!

Note: There were one clustered index (PK) and 4 non-clustered indexes in that table.

Any explanation for this big different?

Thanks


I hope to get a reply very soon.

Thanks
Hossam

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search