- I get this SQL A transport-level error, but not all the time
- public static void QueryDB(string query)
- {
- cmd = new SqlCommand();
- cmd.CommandText = query;
- cmd.Connection = MyConn;
- if (dr != null) dr.Dispose();
- dr = cmd.ExecuteReader();
- }
- MyConn = new SqlConnection("Data Source=tcp:localhost; Database=EscalationManagementSystem; Integrated Security=true;");