I've found a lot of questions similar to this, but none of them (or their solutions) seem to fit the behaviour I'm experiencing.
I'm trying to add a lot of text to a row, but it's getting truncated at 4000 characters. I've output this in SSMS as text, and checked the text results size option (it's set to 8000 chars) but I can still seemingly only store 4000 chars.
Simplified example:
CREATE TABLE [dbo].[TestTable](
[MaxSizeTest] NVARCHAR(MAX) NULL
)
INSERT [dbo].[TestTable](MaxSizeTest)
VALUES (N'1. Definitions' + NCHAR(13) + NCHAR(13) + N'a load more chars' + CHAR(13) + NCHAR(13) + N'you get the idea')
I suspect the issue might be due to my use of carriage return characters, which are needed as the column value is used to populate a textbox.