What is the maximum length of a varchar in SQL Server?

Q

What is the maximum length of a varchar in SQL Server?

✍: Guest

A

Answer1
VARCHAR[(n)]
Null-terminated Unicode character string of length n,
with a maximum of 255 characters. If n is not supplied, then 1 is assumed.

Answer2
8000

Answer3
The business logic is the aspx.cs or the aspx.vb where the code is being written. The presentation logic is done with .aspx extention.

2014-09-15, 1385👍, 0💬