CommandTimeout

  • Thread starter Thread starter William Ryan
  • Start date Start date
W

William Ryan

Will you get a timeout exception if the query takes longer than the timeout
period to execute, or does it get thrown when you can't initiate a command
for longer than the period? Or both?

I've tried setting CommandTimeout to 1 and then fire a long running query
and I don't get the exception....so I'm wondering behind the scenes, what
will cause a timeout problem with the Command object?
 
Nevermind....I did some research and figured it out on my own. It looks
like if (TotalQueryTime>CommandTimeout ) exceptions are raised.

Sorry about that.

Bill
 
Back
Top