I am running SQL 2008, but the database is not allowing me to set a length for nvarchar greater than 4000, even though all the documentation I've seen says it will accept up to 8000. I'm sure this is something simple I'm overlooking.
My statement:
alter table dbo.tblWPDataFile2
alter column local_program_text_1 nvarchar(8000)
Error message:
Msg 2717, Level 16, State 2, Line 1
The size (8000) given to the parameter 'local_program_text_1' exceeds the maximum allowed (4000).
I don't want to use ntext because it is deprecated, and I don't want to use nvarchar(max) unless absolutely necessary. According to all I've seen, I shouldn't have to use either of these because nvarchar(8000) should be valid.