DataType.MaximumLength Property


Gets the maximum length of the data type.

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

public int MaximumLength { get; set; }

Property Value

Type: System.Int32

An Int32 value that specifies the maximum length of the data type.

Visual Basic

Dim d As DataType
d = New DataType(SqlDataType.MaximumLength)


$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::MaximumLength)
Return to top