SetOutputColumnDataTypeProperties 메서드
Sets the data type properties of an IDTSOutputColumn100 object.
네임스페이스: Microsoft.SqlServer.Dts.Pipeline.Wrapper
어셈블리: Microsoft.SqlServer.DTSPipelineWrap(Microsoft.SqlServer.DTSPipelineWrap.dll)
구문
‘선언
Public Overridable Sub SetOutputColumnDataTypeProperties ( _
lOutputID As Integer, _
lOutputColumnID As Integer, _
eDataType As DataType, _
lLength As Integer, _
lPrecision As Integer, _
lScale As Integer, _
lCodePage As Integer _
)
‘사용 방법
Dim instance As CManagedComponentWrapperClass
Dim lOutputID As Integer
Dim lOutputColumnID As Integer
Dim eDataType As DataType
Dim lLength As Integer
Dim lPrecision As Integer
Dim lScale As Integer
Dim lCodePage As Integer
instance.SetOutputColumnDataTypeProperties(lOutputID, _
lOutputColumnID, eDataType, lLength, _
lPrecision, lScale, lCodePage)
public virtual void SetOutputColumnDataTypeProperties(
int lOutputID,
int lOutputColumnID,
DataType eDataType,
int lLength,
int lPrecision,
int lScale,
int lCodePage
)
public:
virtual void SetOutputColumnDataTypeProperties(
[InAttribute] int lOutputID,
[InAttribute] int lOutputColumnID,
[InAttribute] DataType eDataType,
[InAttribute] int lLength,
[InAttribute] int lPrecision,
[InAttribute] int lScale,
[InAttribute] int lCodePage
)
abstract SetOutputColumnDataTypeProperties :
lOutputID:int *
lOutputColumnID:int *
eDataType:DataType *
lLength:int *
lPrecision:int *
lScale:int *
lCodePage:int -> unit
override SetOutputColumnDataTypeProperties :
lOutputID:int *
lOutputColumnID:int *
eDataType:DataType *
lLength:int *
lPrecision:int *
lScale:int *
lCodePage:int -> unit
public function SetOutputColumnDataTypeProperties(
lOutputID : int,
lOutputColumnID : int,
eDataType : DataType,
lLength : int,
lPrecision : int,
lScale : int,
lCodePage : int
)
매개 변수
- lOutputID
유형: System. . :: . .Int32
The ID of the IDTSOutputColumn100 object.
- lOutputColumnID
유형: System. . :: . .Int32
The ID of the IDTSOutputColumn100 object.
- eDataType
유형: Microsoft.SqlServer.Dts.Runtime.Wrapper. . :: . .DataType
The DataType to assign to the column.
- lLength
유형: System. . :: . .Int32
The length of the column.
- lPrecision
유형: System. . :: . .Int32
The total number of digits in the column.
- lScale
유형: System. . :: . .Int32
The number of decimal places (digits to the right of the decimal point) allowed in the column.
- lCodePage
유형: System. . :: . .Int32
The character set of the output column.
구현
주의
The data type properties of an output column are dependent on each other and require that specific rules be followed based on the DataType of the column. This method enables a component to enforce these rules by setting all of the properties at once.
The following table lists the rules that apply when setting the data type properties of an output column.
DataType |
Length |
Scale |
Precision |
CodePage |
---|---|---|---|---|
DT_DECIMAL |
0 |
Greater than 0 and less than or equal to 28. |
0 |
0 |
DT_CY |
0 |
0 |
0 |
0 |
DT_NUMERIC |
0 |
Greater than 0 and less than or equal to 28 and less than Precision. |
Greater than or equal to 1 and less than or equal to 38. |
0 |
DT_BYTES |
Greater than 0. |
0 |
0 |
0 |
DT_STR |
Greater than 0 and less than 8000. |
0 |
0 |
Not 0, and a valid code page. |
DT_TEXT |
Greater 0 and less than 8000. |
0 |
0 |
Not 0, and a valid code page. |
DT_WSTR |
Greater than 0 and less than 4000. |
0 |
0 |
0 |