Udostępnij przez


DataType Constructor (SqlDataType, Int32)

Initializes a new instance of the DataType class based on a specified SQL Server data type with specified precision or maximum length.

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

Syntax

'Deklaracja
Public Sub New ( _
    sqlDataType As SqlDataType, _
    precisionOrMaxLengthOrScale As Integer _
)
public DataType (
    SqlDataType sqlDataType,
    int precisionOrMaxLengthOrScale
)
public:
DataType (
    SqlDataType sqlDataType, 
    int precisionOrMaxLengthOrScale
)
public DataType (
    SqlDataType sqlDataType, 
    int precisionOrMaxLengthOrScale
)
public function DataType (
    sqlDataType : SqlDataType, 
    precisionOrMaxLengthOrScale : int
)

Parameters

  • sqlDataType
    A SqlDataType object value that specifies the SQL Server data type.
  • precisionOrMaxLengthOrScale

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.