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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Variable Data Size = 2+(number of variable * 2) +

Author  Topic 

sponguru_dba
Yak Posting Veteran

93 Posts

Posted - 2008-12-21 : 12:55:10
Hi all

Below is the Part of Row_size calucalation formule for Variable

Variable Data Size = 2+(number of variable * 2) + Max_varchar_size

still I don't understand what "Max_varchar_size"

If Table is

Prod_id int
Prod_name Varchar(100)
Prod_Desc Varchar(max)
Prod_us_Desc nvarchar(max)
Loc nvarchar(50)

in above case what is Max_varchar_size

Please some body help regarding.

SNIVAS

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2008-12-22 : 14:23:59
I believe the max_varchar_size in your table would be 150. The varchar(max) column would not apply to "variable data size" but rather would fit under the categor of LOB (large object columns). See Paul Randal's posts in this thread:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53938


Be One with the Optimizer
TG
Go to Top of Page
   

- Advertisement -