将SQL查询到的结果保存为excel有很多方法,其中最简单的就是直接复制粘贴了 1.带Head的复制粘贴 1)先左击红色区域实现选择所有数据 2)随后右击选择Copy with Headers 再粘贴到Excel即可 2.在查询到的数据中可能有数据包含换行符导致复制到excel中后会发生错乱换行的现象 例如:这条记录 复制到txt word 或者excel中时就会变成三行,像下面这样 { botDisplayName }{ botDescription }Here is the join li
https://stackoverflow.com/questions/53115490/how-to-correctly-insert-newline-in-nvarchar 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 Gri