title: Invalid column name sql error
body: <p>I am trying to enter data into my database, but it is giving me the following error:</p>
  
  <blockquote>
    <p>Invalid column name</p>
  </blockquote>
  
  <p>Here's my code </p>
  
  <pre><code>string connectionString = "Persist Security Info=False;User ID=sa;Password=123;Initial Catalog=AddressBook;Server=Bilal-PC";
  
  using (SqlConnection connection = new SqlConnection(connectionString))
  {
    SqlCommand cmd = new SqlCommand();
  
    cmd.CommandText = "INSERT INTO Data (Name,PhoneNo,Address) VALUES (" + txtName.Text + "," + txtPhone.Text + "," + txtAddress.Text + ");";
    cmd.CommandType = CommandType.Text;
    cmd.Connection = connection;
  
    connection.Open();
    cmd.ExecuteNonQuery();
  }
  </code></pre>