I have below code:-
DECLARE @NewLineChar AS CHAR(23) = CHAR(13) + CHAR(10) select \'abc\'+@NewLineChar+\'a\'
I expect the result to be:-
U have to concat string with CHAR(13) This should work:
CHAR(13)
DECLARE @NewLineChar NVARCHAR(200); SET @NewLineChar = 'abc' + CHAR(13) + 'a'; PRINT @NewLineChar;
OUTPUT:
abc a