SyntaxFix
Write A Post
Hire A Developer
Questions
Came across this question and wanted something more simple... Try the following:
SELECT [processing-instruction(x)]=@Script FOR XML PATH(''),TYPE