try { oSQLConn.Open(); return oSQLConn.State.ToString(); } catch (Exception ex) { MessageBox.Show(ex.ToString(); return "Failed"; }