다음을 통해 공유


AssignmentDiag Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

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

구문

object
.AssignmentDiag [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    TRUE or FALSE

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetAssignmentDiag(LPBOOL pRetVal);
HRESULT SetAssignmentDiag(BOOL NewValue);

주의

If 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:

  • The statement is stopped.
  • Any transactions are rolled back.
  • An error is returned to the client.

If 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:

  • Transactions are not rolled back.
  • The client receives either an error, success with information, or a success return code.

Applies To:

DBOption Object

참고 항목

관련 자료

SET ANSI_WARNINGS(Transact-SQL)

도움말 및 정보

SQL Server 2005 지원 받기