char(13)
is CR
. For DOS-/Windows-style CRLF
linebreaks, you want char(13)+char(10)
, like:
'This is line 1.' + CHAR(13)+CHAR(10) + 'This is line 2.'
More Related Contents:
- SQL where clause odd behavior [closed]
- SQL Server Exec issue [closed]
- Count(*) vs Count(1) – SQL Server
- How do I escape a single quote in SQL Server?
- NOT IN vs NOT EXISTS
- Only inserting a row if it’s not already there
- Unpivot with column name
- Selecting data from two different servers in SQL Server
- Emulate MySQL LIMIT clause in Microsoft SQL Server 2000
- How do I create a step in my SQL Server Agent Job which will run my SSIS package?
- SQL Call Stored Procedure for each Row without using a cursor
- How to select the last record of a table in SQL?
- What’s the best way to capitalise the first letter of each word in a string in SQL Server
- SQL string comparison, greater than and less than operators
- Splitting the string in sql server
- How do I group on continuous ranges
- Need to list all triggers in SQL Server database with table name and table’s schema
- Is it possible to perform multiple updates with a single UPDATE SQL statement?
- Get previous and next row from rows selected with (WHERE) conditions
- Does Sql JOIN order affect performance?
- Best equivalent for IsInteger in SQL Server
- How to list files inside a folder with SQL Server
- Using tuples in SQL “IN” clause
- Can SQL Server Express LocalDB be connected to remotely?
- Backup a single table with its data from a database in sql server 2008
- The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions
- COALESCE Function in TSQL
- What is the meaning of SELECT … FOR XML PATH(‘ ‘),1,1)?
- SQL Sort Order with Null values last
- When to use EXCEPT as opposed to NOT EXISTS in Transact SQL?