Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataType.SqlDataType Property

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public SqlDataType SqlDataType { get; set; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.SqlDataType
A SqlDataType object value that specifies an SqlDataType definition in the data type.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.