예제 #1
0
 private void cmbDatabase_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         dgData.DataSource = null;
         cmbTables.Items.Clear();
         boundTables = DBHandler.GetTables(cmbDatabase.Text).ToArray();
         txtSearch_KeyUp(sender, null);
     }
     catch (SqlException exc)
     {
         MessageBox.Show("Exception occured : " + Environment.NewLine + "\t" + exc.Message + Environment.NewLine + Environment.NewLine + "Caused by one of the following :" + Environment.NewLine + "Login Failed." + Environment.NewLine + "Incorrect dbName" + Environment.NewLine + "Access Denied.", "DB Explorer : from techPhernalia.com : by Durgesh Chaudhary");
     }
 }