• Maybe this link will be of some help, too:

    http://www.sqlservercentral.com/Forums/Topic679572-338-2.aspx

    Barry did a great job explaining how the STUFF ... FOR XML PATH actually works.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]