DIVIDE_BY_ZERO_ERROR Option [TSQL]

Controls the reporting of division by zero.

Allowed Values

ON, OFF

Default

ON

Scope

This option indicates whether division by zero is reported as an error. If the option is set ON, division by zero results in an error with SQLSTATE 22012.

If the option is set OFF, division by zero is not an error; a NULL is returned.