The problem is your setting on SSMS, not that the data doesn’t have a line break.
Go to: Tools -> Options -> Query Results -> SQL Server -> Results to Grid -> Retain CR/LF on copy or Save
and make sure the option is ticked.
More Related Contents:
- I dont know sql syntax for my table [closed]
- get a comma delimited string from rows [duplicate]
- Scope of temporary tables in SQL Server
- Sequence vs identity
- Count Number of Consecutive Occurrence of values in Table
- Find min and max for subsets of consecutive rows – gaps and islands
- How to get Previous Value for Null Values
- SQL Server: +(unary) operator on non-numeric Strings
- Get top 1 row of each group
- How to calculate age (in years) based on Date of Birth and getDate()
- Convert Month Number to Month Name Function in SQL
- SQL Server 2012 column identity increment jumping from 6 to 1000+ on 7th entry [duplicate]
- Multiple INSERT statements vs. single INSERT with multiple VALUES
- Limit on the WHERE col IN (…) condition
- Removing leading zeroes from a field in a SQL statement
- Generate a resultset of incrementing dates in TSQL
- Getting result of dynamic SQL into a variable for sql-server
- How to get difference between two rows for a column field?
- Better techniques for trimming leading zeros in SQL Server?
- Common Table Expression, why semicolon?
- T-SQL split string based on delimiter
- SQL Server SELECT into existing table
- Convert Date format into DD/MMM/YYYY format in SQL Server
- TSQL – How to use GO inside of a BEGIN .. END block?
- SQL take just the numeric values from a varchar
- SQL Server SELECT INTO @variable?
- WITH CHECK ADD CONSTRAINT followed by CHECK CONSTRAINT vs. ADD CONSTRAINT
- Select a column if other column is null
- How to subtract 30 days from the current date using SQL Server
- How to automatically generate unique id in SQL like UID12345678?