• Paul,

    When I copy / paste your script into SSMS or a text editor, it all appears on one line.

    Any ideas what am I doing wrong?