다음을 통해 공유


AnsiNulls Property

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

The AnsiNulls property reports the NULL acceptance behavior for new columns.

구문

object.AnsiNulls [=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 GetAnsiNulls(LPBOOL pRetVal);
HRESULT SetAnsiNulls(BOOL NewValue);

주의

By default, Microsoft SQL Server creates columns that do not accept NULL when the user does not explicitly declare the ability to accept NULL. Further, SQL Server returns TRUE when evaluating the expression NULL = NULL. These default behaviors are nonstandard.

If AnsiNulls is TRUE, new columns accept NULL by default and any comparison of NULL to any other value, including NULL, returns NULL.

The AnsiNulls property affects the way in which NULLs are handled for the user's connection only and overrides any database-specific settings for column creation and NULL comparison.

Applies To: