共用方式為


IDTSDesigntimeComponent100.SetOutputColumnDataTypeProperties 方法

Sets the data type properties of an IDTSOutputColumn100 object.

命名空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
組件:  Microsoft.SqlServer.DTSPipelineWrap (在 Microsoft.SqlServer.DTSPipelineWrap.dll 中)

語法

'宣告
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 IDTSDesigntimeComponent100 
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)
void SetOutputColumnDataTypeProperties(
    int lOutputID,
    int lOutputColumnID,
    DataType eDataType,
    int lLength,
    int lPrecision,
    int lScale,
    int lCodePage
)
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
function SetOutputColumnDataTypeProperties(
    lOutputID : int, 
    lOutputColumnID : int, 
    eDataType : DataType, 
    lLength : int, 
    lPrecision : int, 
    lScale : int, 
    lCodePage : int
)

參數

  • lPrecision
    型別:System.Int32
    The numeric precision of the column.
  • lScale
    型別:System.Int32
    The numeric scale of the column.
  • lCodePage
    型別:System.Int32
    The code page of the column.

備註

The parameters of this method are properties of the IDTSOutputColumn100 object that are individually read-only, and must be set by using this method. This method is required because the values of these properties depend on each other. It provides a mechanism for updating these properties at the same time and enables the component and the data flow task to enforce the dependencies. The eDataType parameter dictates the requirements of the other parameter values.

The following table lists the rules that must be adhered to 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 than 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

請參閱

參考

IDTSDesigntimeComponent100 介面

Microsoft.SqlServer.Dts.Pipeline.Wrapper 命名空間