Export (0) Print
Expand All

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: 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)
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft