title: How to set a column name in SQL query as parameter?
body: <p>I want to transfer to <code>CommandText</code> table name as parameter, something like  <code>@column</code>. How can I do this? Because column name is transferred  as custom parameter.</p>
  
  <pre><code>using (SqlConnection connection = SQL.Connection())
  {
      using (SqlCommand cmd = connection.CreateCommand())
      {
          cmd.Parameters.Add("@data", SqlDbType.VarChar).Value = "some_string";
          cmd.CommandText = "UPDATE users SET colum=@data";
          cmd.ExecuteNonQuery();
      }
  }
  </code></pre>