public bool cancelSQL()
 {
     try {
         if (conectionString.Contains("Provider=") == true)
         {
             adocon.Cancel();
             return(true);
         }
         else if (conectionString.Contains("Driver=") == true)
         {
             return(true);
         }
         else
         {
             mycon.CancelQuery(0);
             return(true);
         }
     } catch (Exception e) {
         error = e.Message.ToString();
         return(false);
     }
 }