Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the DataType class based on a specified SQL Server data type.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub New ( _
sqlDataType As SqlDataType _
)
'Usage
Dim sqlDataType As SqlDataType
Dim instance As New DataType(sqlDataType)
public DataType(
SqlDataType sqlDataType
)
public:
DataType(
SqlDataType sqlDataType
)
new :
sqlDataType:SqlDataType -> DataType
public function DataType(
sqlDataType : SqlDataType
)
Parameters
- sqlDataType
Type: Microsoft.SqlServer.Management.Smo.SqlDataType
A SqlDataType object variable that specifies the SQL Server system data type.
Examples
Visual Basic
Dim dt As DataType
dt = New DataType(SqlDataType.Int)
PowerShell
$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Int)