• Thanks for the script.

    I've sucessfully run it and created the sp but when I run the sp itself in SS management studio (2005), I only get the colunm headers but no results.

    Am I missing something?