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);
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);
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)
.