I am trying to override the default SqlConnection timeout of 15 seconds and am getting an error saying that the
SqlConnection
property or indexer cann
You can also use the SqlConnectionStringBuilder
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(ConnectionString); builder.ConnectTimeout = 10; using (var connection = new SqlConnection(builder.ToString())) { // code goes here }