TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

IDatabaseOptions.AnsiNullDefault Property

 

Gets or sets a Boolean property value that specifies whether the ANSI_NULL_DEFAULT database option is active.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[DisplayDescriptionKeyAttribute("Database_AnsiNullDefaultDesc")]
[DisplayNameKeyAttribute("Database_AnsiNullDefaultName")]
bool AnsiNullDefault { get; set; }

Property Value

Type: System.Boolean

A Boolean value that specifies whether the ANSI_NULL_DEFAULT database option is active.

If True, user-defined data types default to allowing NULL values.

If False (default), user-defined data types default to not allowing NULL values.

This option lets the user control the database default nullability at a database level.

This option can also be changed by using the Transact-SQL ALTER DATABASE statement.

How to Get and Set a Property in Visual Basic .NET

Return to top
Show:
© 2016 Microsoft