• A brief Google search led me to this [/url]article.

    It's not difficult, but it's much easier (and almost certainly faster) if you can do this in T-SQL instead.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.