Home Forums SQL Server 2005 Development Need to merge multiple rows into one with carriage return RE: Need to merge multiple rows into one with carriage return

  • Use CHAR(13)

    so something like this..

    DECLARE @STR varchar(50)

    SELECT @STR = 'I'+CHAR(13)+'LOVE'+CHAR(13)+'SQL SERVER'

    PRINT @STR