title: using string variable in sql query string having column name in select query
body: <p>i'm trying to put column name in variable then i m using this string in sql query as:</p>
  
  <pre><code>string s="ID";
  
  string sql="select '"+s+"' from table_name where name='abhk'";
  
  cmd=new SqlCommand(sql_pics, con);
  
  cmd.ExecuteNonQuery();
  </code></pre>
  
  <p><em>it says incorrect syntax error near ID</em><code>ID is column name.</code></p>