How do I add a Line break in a SQL Server Stored Procedure?

26,804

Solution 1

DECLARE @LINEBREAK AS varchar(2)
SET @LINEBREAK = CHAR(13) + CHAR(10)

Solution 2

Try this:

set @output = @output + 'aaa' + char(13)
Share:
26,804
recursive9
Author by

recursive9

Founder of Crystal Gears Portfolio: - www.movertrends.com - www.friendshopper.com - www.digitalshow.com - www.translatorscorner.com - www.gigpay.com

Updated on July 05, 2022

Comments

  • recursive9
    recursive9 almost 2 years

    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?