SyntaxFix
Write A Post
Hire A Developer
Questions
I found this SMSMS Boost addon, which is free and does exactly this among other things. You can right click on the results and select Script data as.