Quantcast
Viewing all articles
Browse latest Browse all 3587

Re: utcgetdate - stop a query after x time


Perhaps a poor man's solution? 

 

Open the connection for the report, get it's spid, and start the query.  Don't plan on using this connection for any other subsequent activity.

Open a second connection and execute a "waitfor time <dropdeadtime>" followed by a "kill <report spid>"

 

Leave both sessions running overnight.

 

-bret


Viewing all articles
Browse latest Browse all 3587

Trending Articles