title: Unable to connect to SQL Server database in C#
body: <p>I am learning C# and I am trying to connect my program to a SQL Server database. For the learning purpose I followed the following video : </p>
  
  <p><a href="http://www.youtube.com/watch?v=Rwdedptaou0" rel="nofollow">http://www.youtube.com/watch?v=Rwdedptaou0</a></p>
  
  <p>This is my code:</p>
  
  <pre><code>using System.Data.SqlClient;
  
  namespace TestDBMS
  {
      public partial class MainWindow : Window
      {
          SqlConnection conn;
          SqlCommand cmd;
  
          public MainWindow()
          {
              InitializeComponent();
              conn = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\Reventon\Documents\EmployeeDB.mdf;Integrated Security=True;Connect Timeout=30");
          }
  
          private void btnSave_Click(object sender, RoutedEventArgs e)
          {
              string query = "INSERT INTO Table VALUES(3, 'Sachin', '120000', 'Nagaur')";
              cmd = new SqlCommand();
              cmd.CommandText = query;
              cmd.Connection = conn;
              conn.Open();
              cmd.ExecuteNonQuery();
              conn.Close();
  
              MessageBox.Show("Record Saved");
          }
      }
  }
  </code></pre>
  
  <p>After compiling the program I am getting an error </p>
  
  <blockquote>
    <p>Incorrect Syntax Near the 'Table'</p>
  </blockquote>
  
  <p>(for better representation i have captured the screenshot and uploaded on my Skydrive account). 
  <a href="http://sdrv.ms/1bUDe3l" rel="nofollow">http://sdrv.ms/1bUDe3l</a></p>
  
  <p>Please help me out.</p>