View.AnsiNullsStatus 属性

Gets the Boolean property value that specifies whether ISO NULL handling is enabled on the view.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property AnsiNullsStatus As Boolean 
    Get 
    Set
用法
Dim instance As View 
Dim value As Boolean 

value = instance.AnsiNullsStatus

instance.AnsiNullsStatus = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool AnsiNullsStatus { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property bool AnsiNullsStatus {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract AnsiNullsStatus : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override AnsiNullsStatus : bool with get, set
final function get AnsiNullsStatus () : boolean 
final function set AnsiNullsStatus (value : boolean)

属性值

类型:System.Boolean
A Boolean value that specifies the whether the ISO NULL handing is enabled or not.If True, comparisons to null values equate to false.If False (default), comparisons to null values equate to true.

实现

IViewOptions.AnsiNullsStatus

注释

This property specifies whether any comparison to a null value equates to a NULL value. For example, A SELECT statement using WHERE column_name <> NULL returns zero rows even if there are non-null values in column_name.

示例

创建、更改和删除视图

请参阅

参考

View 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

设计和实现视图

CREATE VIEW (Transact-SQL)