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.
| Author |
Topic |
|
WoodHouse
Posting Yak Master
211 Posts |
Posted - 2009-08-25 : 06:13:26
|
| Hi GuysHow we find out the following things..Table size, row size, column size, index size (both), page sizePlease help me out......... |
|
|
senthil_nagore
Master Smack Fu Yak Hacker
1007 Posts |
Posted - 2009-08-25 : 06:31:40
|
| DBCC CHECKTABLE ('table_name')Senthil.C------------------------------------------------------[Microsoft][ODBC SQL Server Driver]Operation canceledhttp://senthilnagore.blogspot.com/ |
 |
|
|
YellowBug
Aged Yak Warrior
616 Posts |
|
|
WoodHouse
Posting Yak Master
211 Posts |
Posted - 2009-08-25 : 07:02:17
|
| Hi YellowBugFinebut i want the column data size in bytes...take rows there is limit is 8060 bytes right how to find what is the size of columns and rows in existing table.bcoz we can't able to create index more than 900 bytes right... |
 |
|
|
rajdaksha
Aged Yak Warrior
595 Posts |
Posted - 2009-08-25 : 07:21:29
|
| hitry this...SELECT DATALENGTH(COLUMN)FROM TABLE_NAME-------------------------R... |
 |
|
|
YellowBug
Aged Yak Warrior
616 Posts |
Posted - 2009-08-25 : 07:22:29
|
| To get the column data size, you need to know the data type of each column to get the storage size.Example: int - 4 bytestinyint - 1 byteThen add up all the column sizes, and you have the row size. There are some exceptions (BLOBs).How many columns are in your index? |
 |
|
|
|
|
|