原 SSMS复制SQL内容自动换行
简介
问题:SQL Server 字段数据存在换行符,但是复制出来却没有换行
原因:SSMS默认配置的问题。
The problem is your setting on SSMS, not that the data doesn't have a line break.
配置
永久配置(需要重启SSMS)
Tools -> Options -> Query Results -> SQL Server -> Results to Grid -> Retain CR/LF on copy or Save and make sure the option is ticked.
工具 -> 选项 -> 查询结果 -> 以网格显示结果 -> 打勾 “复制或保存时保留CR/LF(E)”选项