• GSquared,

    Thank you for the link. That helps alot.

    The /*...*/ was put in by me because I copied that code out of a SQL trace file and did not have any input parameter values. So I commented them out so I could test the results in the sql studio.

    -Todd