DataType 생성자 (SqlDataType, Int32)
Initializes a new instance of the DataType class based on a specified SQL Server data type with specified precision or maximum length.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Sub New ( _
sqlDataType As SqlDataType, _
precisionOrMaxLengthOrScale As Integer _
)
‘사용 방법
Dim sqlDataType As SqlDataType
Dim precisionOrMaxLengthOrScale As Integer
Dim instance As New DataType(sqlDataType, _
precisionOrMaxLengthOrScale)
public DataType(
SqlDataType sqlDataType,
int precisionOrMaxLengthOrScale
)
public:
DataType(
SqlDataType sqlDataType,
int precisionOrMaxLengthOrScale
)
new :
sqlDataType:SqlDataType *
precisionOrMaxLengthOrScale:int -> DataType
public function DataType(
sqlDataType : SqlDataType,
precisionOrMaxLengthOrScale : int
)
매개 변수
- sqlDataType
유형: Microsoft.SqlServer.Management.Smo. . :: . .SqlDataType
A SqlDataType object value that specifies the SQL Server data type.
- precisionOrMaxLengthOrScale
유형: System. . :: . .Int32
An Int32 value that specifies the precision for numeric SQL Server data types and maximum length for text based SQL Server data types.
예
Visual Basic
Dim dt As DataType
dt = New DataType(SqlDataType.
PowerShell
$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::