Alright, we have two database servers, one is owned by us, one owned by a partner. Our partners have been having issues lately that have been causing us numerous sql timeout errors, which takes down our whole system. We’d prefer to limit the time those queries can take to say 20 seconds max, otherwise quit trying and throw the error (which we can catch with a try/catch block).
Couple of questions:
- Is there a way to set a particular db/connection string to timeout after X seconds?
- Is this the best way to quarantine that other system? or are there better ways to go about this?
Thanks
Dumb question – commandTimeout in the connection string will suffice for my needs.