title: What is the standard way to constantly check SQL Server connection?
body: <p>In a WPF application I use LINQ to SQL queries inside <strong>try - catch</strong> constructions to process exceptions, in case there is something wrong with DB server connection. </p>
  
  <p>The problem is - I have some queries executing on a timer-polling basis. So, if connection fails, I have numerous long queries attempts and UI is freezing.</p>
  
  <p>What is the standard way out? I would like to have easy lightweighted way of constant checking if db connection is OK and then do all the stuff with all my queries.</p>