AssignmentDiag Property (SQL-DMO)

The AssignmentDiag property enables SQL-92 standard behavior for NULL in aggregate, data truncation, divide-by-zero, and arithmetic overflow errors.

Applies To

DBOption Object

Syntax

object.AssignmentDiag [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

When True, SQL-92 standard behavior is enabled. If NULL is involved in an aggregate, data is truncated on an INSERT or UPDATE statement execution, or a divide-by-zero or arithmetic overflow occurs, these events follow:

When False, SQL-92 behavior is disabled. If NULL is returned for an affected column or data is truncated on an INSERT or UPDATE, these events follow:

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetAssignmentDiag(LPBOOL pRetVal);

HRESULT SetAssignmentDiag(BOOL NewValue);

See Also

SET ANSI_WARNINGS

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.