JustWannaBeAbleToJamAndNotEmbarassMyself
3/27/2007 8:25:00 PM
I have a critical production system.
There is an application.. that runs as a Windows Service that
continually queries a SQL Server 2000 DB, on Windows 2000 every second
or two.
A user went onto the system and executed a complex query, that ended
up causing SQL Server to utilize 100% of the CPU.
The critical application simultaneously went to query the database via
a stored procedure using OLE DB, and just waited for more than 20
minutes, while the user's query was executing.
The question is.. why didn't the critical application time out after
so many seconds?? I thought the default for command execution was 30
seconds??
Is there any way to make sure a OLE DB command times out, no matter
how much CPU usage SQL Server is consuming?? Is there a way to
limit the amount of CPU usage SQL Server uses.. to at least allow
other applications to be responsive?
Whats the easiest way to set up a timeout value that will work for all
OLE DB commands within an application?.. I prefer not to have to set
the timeout value for each individual command.
Please help!