I have below code:-
DECLARE @NewLineChar AS CHAR(23) = CHAR(13) + CHAR(10) select \'abc\'+@NewLineChar+\'a\'
I expect the result to be:-
To test your output, if using SSMS make sure the option Retain CR/LF on copy or save is checked, else all pasted results will loose the line feed. You find this at settings, query results, sql server, results to grid.