title: Why am I not getting a division error when I set the divisor to 0?
body: <p>When I run this, the output is 2 and 2, whereas I expected an error since I set @b=0. What is wrong with my code? Thanks!</p>
  
  <pre><code>declare @a int
  declare @b int
  declare @c int
  begin
  set @a=10
  set @b=5
  set @C=@a/@b
  print @C
  set @b=0
  print @C
  end
  </code></pre>
  
  <p>The output is 2 and 2, but I expected 2 and error...</p>