title: Changing SqlConnection timeout
body: <p>I am trying to override the default <code>SqlConnection</code> timeout of 15 seconds and am getting an error saying that the </p>
  
  <blockquote>
    <p>property or indexer cannot be assigned because it is read only.</p>
  </blockquote>
  
  <p>Is there a way around this?   </p>
  
  <pre><code>using (SqlConnection connection = new SqlConnection(Database.EstimatorConnection))
  {
     connection.Open();
  
     using (SqlCommand command = connection.CreateCommand())
     {
         command.CommandType = CommandType.StoredProcedure;
         connection.ConnectionTimeout = 180; // This is not working 
         command.CommandText = "sproc_StoreData";
         command.Parameters.AddWithValue("@TaskPlanID", order.Projects[0].TaskPlanID);
         command.Parameters.AddWithValue("@AsOfDate", order.IncurDate);
  
         command.ExecuteNonQuery();
      }
  }
  </code></pre>