How to correctly insert newline in nvarchar [duplicate]

The problem is your setting on SSMS, not that the data doesn’t have a line break.

Go to: Tools -> Options -> Query Results -> SQL Server -> Results to Grid -> Retain CR/LF on copy or Save and make sure the option is ticked.

Leave a Comment