title: How can I Pass a Table Name to SqlCommand?
body: <p>I am trying to pass a table name as a parameter to my query through <code>SqlCommand</code> but it doesn't seems to be working. 
  Here is my code;</p>
  
  <pre><code>SqlConnection con = new SqlConnection( "server=.;user=sa;password=12345;database=employee" );
  con.Open( );
  SqlCommand cmd = new SqlCommand( "drop table @tbName" , con );
  cmd.Parameters.AddWithValue( "@tbName" , "SampleTable" );
  cmd.ExecuteNonQuery( );
  con.Close( );
  </code></pre>