Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Record Size

Author  Topic 

SanjeevBaranwal
Starting Member

14 Posts

Posted - 2008-12-09 : 04:36:21
Hi,
Please help me to find out how we can calculate a record size in SQL server table.

svicky9
Posting Yak Master

232 Posts

Posted - 2008-12-09 : 05:41:30
what do you mean by record size? if its the row size then it some of all the column fields.

Vic

http://vicdba.blogspot.com
Go to Top of Page

soorajtnpki
Posting Yak Master

231 Posts

Posted - 2008-12-09 : 05:58:20
hi

do u mean total number of records,
then use select count(*) from ur_table
Go to Top of Page

NeilG
Aged Yak Warrior

530 Posts

Posted - 2008-12-09 : 06:23:50
Do you mean in physical size i.e 40 bytes etc
Go to Top of Page

SanjeevBaranwal
Starting Member

14 Posts

Posted - 2008-12-09 : 06:46:59
Yes I want a record size in KB or MB. How can we check it.
Go to Top of Page

SanjeevBaranwal
Starting Member

14 Posts

Posted - 2008-12-09 : 23:56:06
Hi,
Is there no any way to find that???
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-10 : 01:06:24
Calculate the max size of the table by adding up the number of bytes each column can take, then multiple that by the number of rows you have or expect. You'll need to account for indexes too.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -