-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,248
  • 26
  • 61
  • 88

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
  • 1,870
  • 10
  • 22