DataType.SqlDataType DataType.SqlDataType DataType.SqlDataType Property

Definition

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

public:
 property Microsoft::SqlServer::Management::Smo::SqlDataType SqlDataType { Microsoft::SqlServer::Management::Smo::SqlDataType get(); void set(Microsoft::SqlServer::Management::Smo::SqlDataType value); };
public Microsoft.SqlServer.Management.Smo.SqlDataType SqlDataType { get; set; }
Public Property SqlDataType As SqlDataType
Property Value

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

Examples

Visual Basic

Dim dt As DataType  
dt = New DataType(SqlDataType.Int)  
Console.WriteLine(dt.SqlDataType.ToString())  

PowerShell

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

Applies to