Why is server ANSI_WARNINGS OFF setting ignored?
Posted: Mon 26 Mar 2012 10:46
I have a project that I've migrated from BDE to make use of SDAC data access components. I understand, from one of the posts in this forum, that BDE BDE turns off ANSI_WARNINGS to prevent 'divide by 0' and 'binary/string data will be truncated' warnings from occuring. I'm also aware that to prevent this from occuring when using SDAC, I can include 'SET ANSI_WARNINGS OFF' in the stored procedure or query that causes the problem.
However, at this stage I do not want to go to all the queries and stored procedures to include 'SET ANSI_WARNININGS OFF'. Therefore, we have set the server's (SQL Server 2000) ANSI_WARNINGS option to OFF. Why do I still get the 'divide by 0' and 'binary/string will be truncated' warnings, even with the ANSI_WARNING set to OFF on the server?
Thank you for your kind assistance
However, at this stage I do not want to go to all the queries and stored procedures to include 'SET ANSI_WARNININGS OFF'. Therefore, we have set the server's (SQL Server 2000) ANSI_WARNINGS option to OFF. Why do I still get the 'divide by 0' and 'binary/string will be truncated' warnings, even with the ANSI_WARNING set to OFF on the server?
Thank you for your kind assistance