Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

Since SQL2005 ARITHABORT has no effect if ANSI_WARNINGS is ON

$
0
0
I read that on http://www.sommarskog.se/query-plan-mysteries.html.The script doesn't work as the script-comments say: SELECT a / b AS AB gives a "Divide by sero" even after SET ARITHABORT OFF. I run it on SQL2012 with ANSI_WARNINGS ON.The linked text by Erland Sommarskog recommends to set the options of SSMS to set ARITHABORT=OFF to have better chances using the same execution plans in SSMS and your applications.

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>