• I'm curious about the time it take for the query to complete if it is run in SQL Management Studio.  I think the place to start is to make sure the underlying query is optimal.

    Michael L John
    If you assassinate a DBA, would you pull a trigger?
    To properly post on a forum:
    http://www.sqlservercentral.com/articles/61537/