Shane O’Neill shows how to deal with newlines in data:
I have mentioned before that we can use CHAR(10) and CHAR(13) for new lines and carriage returns in SQL Server so I’ll leave it up to an exercise to the reader to create a table with these “troublesome” bits of information in them (plus if you came here from Google, I assume you already have a table with them in it).
For me, I’ve just created a single table
dbo.NewLineNotes
that has a single entry with a new line in it.
Read on for more.