SqlClient.SqlException: The wait operation timed out
问题 I'm currently trying to create a large amount of test data with numerous insert statements using code similar to below... using (var connection = new SqlConnection(_connectionString)) { using (var command = new SqlCommand(query.ToString(), connection)) { try { connection.Open(); command.ExecuteNonQuery(); return true; } catch (Exception e) { ...... } } } My problem is that I keep getting an error The wait operation timed out and yet when I run the SQL statement that failed from within SQL