I have a problem with consistency on different SQL Server versions. With the following code:
DECLARE @text NVARCHAR(50)
SET @text = 'This is line 1.' + CHAR(13)+CHAR(10) + 'This is line 2.'
SELECT @text
I copy and paste results into notepad
From SQL Server 2008R2 shows
This is line 1. This is line 2.
From SQL Server 2014 shows
This is line 1.
This is line 2.
Any idea how I can fix this? Or why it is like this? I want to achieve the latter.
Thanks in advance