title: i tried several techniques but failed to handle this error System.Data.SqlClient.SqlException' occurred in System.Data.dll
body: <p>I have the following error occured when try to execute my program, do not know how to handle, following is the code , and i also attached the screenshots.
  i am new to  .net and sql. Thanks</p>
  
  <p><img src="https://i.stack.imgur.com/Rgeyy.png" alt="following is the screenshot of error generate"></p>
  
  <pre><code>    public partial class adminInfo : Form
      {
          SqlCommandBuilder scb;
          public adminInfo()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              PMS obj = new PMS();
              obj.Show();
              this.Hide();
          }
  
          private void button3_Click(object sender, EventArgs e)
          {
              adminAdd_delete obj = new adminAdd_delete();
              obj.Show();
              this.Hide();
          }
  
          private void button2_Click(object sender, EventArgs e)
          {
              SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\ddd\Desktop\Pharmacy managment system\Pharmacy managment system\adminInfo.mdf;Integrated Security=True;Connect Timeout=30");
              SqlDataAdapter sda = new SqlDataAdapter(@"SELECT        CNIC, [JOB TITLE], SALARY, NAME
  FROM            admininfo", con);
              DataTable dt = new DataTable();
              sda.Fill(dt);
             dataGridView1.DataSource = dt;
          }
  
          private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
          {
  
          }
      }
  }
  </code></pre>