July 5, 2013 at 6:36 am
Hi Team,
In sql server 2008R2, what is the max characters for Varchar(max).
i've declared a variable in a stored proc as Temp Varchar(max), but am passing a parameter with 95000 characters,
is it Work..?
Please Suggest...
July 5, 2013 at 6:47 am
2^31-1 bytes.
Maximum Capacity Specifications for SQL Server
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 5, 2013 at 6:47 am
the limit's found in BOL, but its basically
select POWER(convert(bigint,2),31) -1
so a Varchar(max) stores a maximum of 2 147 483 647 characters.
Lowell
July 5, 2013 at 6:48 am
you would google it out faster than post this question!
http://msdn.microsoft.com/en-us/library/ms176089.aspx
It's 2^31-1 bytes (2 GB).
July 5, 2013 at 6:49 am
Oops!
Somehow, I only could see other replies after I've posted my one.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply