Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.dll Additional information: Incorrect syntax near the keyword 'Table'
<p>My code generates the following error:</p>

<blockquote>
  <p>An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll<br>
  Additional information:<br>
  Incorrect syntax near ')'.</p>
</blockquote>

<p>My code is:</p>

<pre><code>conn.Open();

SqlDataAdapter sda = new SqlDataAdapter("Update [Table] Set [Name]='" + textBox2.Text + "',[Course]='" + comboBox1.Text + "',[YearSection]='" + textBox3.Text + "' Where [Id]='"+textBox1.Text+"')", conn);

sda.SelectCommand.ExecuteNonQuery();
conn.Close();
MessageBox.Show("Updated Successfully !!!");
</code></pre>

<p>Can someone help me understand why this doesn't work.</p>