Getting timeout errors with SqlTransaction on same table
问题 public TransImport() { ConnString = ConfigurationManager.ConnectionStrings["Connection"].ConnectionString; SqlConnection conn_new; SqlCommand command_serial_new; SqlConnection conn; SqlCommand command_serial; SqlTransaction InsertUpdateSerialNumbers; conn = new SqlConnection(ConnString); command_serial = conn.CreateCommand(); conn_new = new SqlConnection(ConnString); command_serial_new = conn_new.CreateCommand(); command_serial_new.CommandText = "SELECT 1 FROM YSL00 WHERE SERLNMBR = @slnr";