title: SQL Server Error Invalid column name 'NaN'
body: <p>I'm having a bit of an issue. I am getting some values from my program's SQL Server database, doing some calculations with them, and then writing the calculated values back to the database. However, some values are giving me <code>"Error Invalid column name 'NaN'."</code> There really isn't anything unique about the columns that are causing this issue. They are the same float type columns as the columns that are working perfectly.</p>
  
  <pre><code>con.Open();
  
  AddPhase1Calc = new SqlCommand("UPDATE Asset SET Make_Up_Depr = " + Make_Up_Depr + " WHERE Asset_ID = " + a, con);
  
  AddPhase1Calc.ExecuteNonQuery();
  
  
  con.Close();
  </code></pre>
  
  <p>I'm not sure if this is enough code but this is the first column that is causing me the issue.</p>