asp.net - Quarantine SQL Server queries in .net 3.5 -


alright, have 2 database servers, 1 owned us, 1 owned partner. our partners have been having issues lately have been causing numerous sql timeout errors, takes down our whole system. we'd prefer limit time queries can take 20 seconds max, otherwise quit trying , throw error (which can catch try/catch block).

couple of questions:

  1. is there way set particular db/connection string timeout after x seconds?
  2. is best way quarantine other system? or there better ways go this?

thanks

dumb question - commandtimeout in connection string suffice needs.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -