private void Proceed() { try { MySQLConnection mc = (MySQLConnection)dc; string qry = "SELECT TABLE_NAME, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='" + mc.DatabaseName + "' AND COLUMN_NAME LIKE '%" + txtSearch.Text + "%';"; frmQueryResults qr = new frmQueryResults(mc, qry); qr.Show(); } catch (Exception) { } }
private void disconnect() { try { jc.CloseConnection(); } catch (Exception) { } try { mc.CloseConnection(); } catch (Exception) { } try { lc.CloseConnection(); } catch (Exception) { } try { msc.CloseConnection(); } catch (Exception) { } jc = null; mc = null; lc = null; msc = null; }