title: SqlDataReader for numeric data type
body: <p>I have this code:</p>
  
  <pre><code>public void nactiData()
  {
          SqlCommand cm = new SqlCommand("SELECT * FROM zajezd WHERE akce="+nc_zajezd_vyber, con); 
          con.Open();
          SqlDataReader reader = cm.ExecuteReader();
  
          if (reader.Read())
          {
              zpocdnu.Text = reader.GetInt32(31).ToString();
              zcena3.Text = reader.GetDecimal(6).ToString();
          }
  
          con.Close();
      }
  </code></pre>
  
  <p>Problem is that it doesn't read <code>zcena3</code> because the datatype in the table is <code>numeric</code>.</p>
  
  <p>On Microsoft's website is written that I should read it with <code>GetDecimal</code>, but it doesn't work either.</p>
  
  <p>Is there any solution?</p>