Category Archives: SQL Server

Stop showing row count information for the current session – SET Statements – SQL Server


SET NOCOUNT: This set statement tells SQL Server to show or hide the number of row affected by the transact SQL or stored procedure or any other statement that returns rows affected by the last executed SQL statement. But, It … Continue reading

Posted in SQL Server | Tagged , , , , , , , | Leave a comment

Get the metadata for a query without resultset- SET Statement – SQL Server


SET FMTONLY is used to set up the current SQL server session to return only metadata for the SQL query execution without resultset. This set option is useful when we develop an application interface for the database. It saves a … Continue reading

Posted in SQL Server | Tagged , , , , , , , , | Leave a comment

Show or Hide SQL Warnings – SET Statement – SQL Server


ANSI_WARNINGS Specifies ISO standard behavior for errors in SQL Server. It helps to show and hide the error messages during query execution. Usage SET ANSI_WARNINGS ON or SET ANSI_WARNINGS OFF   If ANSI_WARNINGS is ON than warning will be raised when … Continue reading

Posted in SQL Server | Tagged , , , , , | Leave a comment

Ignore arithmetic overflow error – SET Statement – SQL Server


ARITHIGNORE Set statement is used to control the messages raised by arithmetic overflow or divide-by-zero errors during a query execution. Usage SET ARITHIGNORE ON or SET ARITHIGNORE OFF   SET ARITHIGNORE setting only controls whether an error message is returned … Continue reading

Posted in SQL Server | Tagged , , , , , , , , , | Leave a comment

Set auto rollback transactions due to arithmetic overflow – SET Statements – SQL Server


SET ARITHABORT statement allows SQL Server to end the query execution whenever the system encounters arithmetic overflow or divide-by-zero error. This set statement is always on by default. But, we can turn this off. If it is off then we … Continue reading

Posted in SQL Server | Tagged , , , , , , | Leave a comment