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.
↧