title: How to solve Msg 8115, Level 16, State 2, Line 2 Arithmetic overflow error converting expression to data type int.?
body: <p>I have a formula like this. But the formula has an error. Please help me.</p>
  
  <pre><code>select 
      [DAY] as [DAY],
      [Name] as [Name],
      ((cast([columnA] + [columnB] + [columnC] as bigint) * 1000) / NULLIF(8 * 1024 * 1048576, 0)) as [TotalColumn]
  from 
      [TableA]
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>Msg 8115, Level 16, State 2, Line 2<br>
    Arithmetic overflow error converting expression to data type int.</p>
  </blockquote>