VarCharMax 属性

Gets a data type that specifies the VarCharMax definition used in the data type.

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

语法

声明
Public Shared ReadOnly Property VarCharMax As DataType
    Get
用法
Dim value As DataType

value = DataType.VarCharMax
public static DataType VarCharMax { get; }
public:
static property DataType^ VarCharMax {
    DataType^ get ();
}
static member VarCharMax : DataType
static function get VarCharMax () : DataType

属性值

类型:Microsoft.SqlServer.Management.Smo. . :: . .DataType
A DataType object value that specifies a VarCharMax definition in the data type.

注释

This data type allows storage of up to a maximum of 2GB of data. You can use the VarCharMax data type as a parameter in stored procedures and string functions. However, you cannot use this data type in the key column of an index.

示例

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.VarCharMax)

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::VarCharMax)