Partager via


Propriété DataType.TinyInt

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Shared ReadOnly Property TinyInt As DataType 
    Get
'Utilisation
Dim value As DataType 

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

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies a TinyInt definition in the data type.

Notes

A tinyint is an integer that is stored in 1 byte. The maximum value is 255. The minimum value is 0.

Exemples

Visual Basic

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

PowerShell

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

Voir aussi

Référence

DataType Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

int, bigint, smallint et tinyint (Transact-SQL)