views:

4279

answers:

2

I'm making a Stored Procedure that basically concatenates a long string with data from many records.

I want to do:

set @output = @output + 'aaa' + LINEBREAK

How do I specify that line break?

+4  A: 
DECLARE @LINEBREAK AS varchar(2)
SET @LINEBREAK = CHAR(13) + CHAR(10)
Cade Roux
A: 

Try this:

set @output = @output + 'aaa' + char(13)
Matt Hamilton