Home Forums Article Discussions Article Discussions by Author Discuss content posted by Shawn Melton Getting query text from SSMS into Excel with PowerShell RE: Getting query text from SSMS into Excel with PowerShell
djhislop
SSC Rookie
Points: 37
More actions
March 23, 2018 at 7:15 am
#1984403
In SSMS Query Options you can untick "Retain CR/LF on copy or save" and then the copy will automatically remove the line feeds for you.