title: SqlDataSource Timeout. OK in Management Studio
body: <p>In code that I inherited, I have a SqlDataSource that has a fairly complex select statement that for certain SelectParameters, <em>always</em> times out ("Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.").</p>
  
  <p>When I run the exact same query with the same parameters in management studio, the query <em>never</em> times out and always takes less than a second.</p>
  
  <p>Does anyone have an idea what the problem could be here? I can't make sense of it.</p>