DataType.Int Property


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

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

public static DataType Int { get; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.DataType

A DataType object value that specifies an Int definition in the data type.

An Int is an integer that is stored in 4 bytes. The maximum value is 2,147,483,647. The minimum value is -2,147,483,648.

Visual Basic

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


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