-1

I have to store maximum of 5000 character in sql server. Which one I can use to achieve this?

Should I use,

nvarchar(5000);
or 
nvarchar(max);
Srinivasan
  • 11,718
  • 30
  • 64
  • 92

1 Answers1

2

nvarchar has a maximum (declareable) length of 4000. So since you want to store more than 4000 characters, you will have to use nvarchar(max).

nchar and nvarchar on MSDN

Adwaenyth
  • 2,020
  • 12
  • 24