Max size of varchar(max) in SQL Server 2000

Kumar picture Kumar · Jan 16, 2010 · Viewed 43.4k times · Source

I would like to know what is the maximum size of varchar in SQL Server 2000. While I was googling somewhere it was written 8000 characters and somewhere it was written 8060 bytes. Which one is correct?

Answer

Joel Coehoorn picture Joel Coehoorn · Jan 16, 2010

Varchar is 8000 and nvarchar is 4000.

Here's the varchar msdn reference:
http://msdn.microsoft.com/en-us/library/aa258242(SQL.80).aspx