IDTSDesigntimeComponent90.SetOutputColumnDataTypeProperties Method

Sets the data type properties of an IDTSOutputColumn90 object.

命名空間: Microsoft.SqlServer.Dts.Pipeline.Wrapper
組件: Microsoft.SqlServer.DTSPipelineWrap (in microsoft.sqlserver.dtspipelinewrap.dll)

語法

'宣告
<DispIdAttribute(32)> _
Sub SetOutputColumnDataTypeProperties ( _
    <InAttribute> lOutputID As Integer, _
    <InAttribute> lOutputColumnID As Integer, _
    <InAttribute> eDataType As DataType, _
    <InAttribute> lLength As Integer, _
    <InAttribute> lPrecision As Integer, _
    <InAttribute> lScale As Integer, _
    <InAttribute> lCodePage As Integer _
)
[DispIdAttribute(32)] 
void SetOutputColumnDataTypeProperties (
    [InAttribute] int lOutputID,
    [InAttribute] int lOutputColumnID,
    [InAttribute] DataType eDataType,
    [InAttribute] int lLength,
    [InAttribute] int lPrecision,
    [InAttribute] int lScale,
    [InAttribute] int lCodePage
)
[DispIdAttribute(32)] 
void SetOutputColumnDataTypeProperties (
    [InAttribute] int lOutputID, 
    [InAttribute] int lOutputColumnID, 
    [InAttribute] DataType eDataType, 
    [InAttribute] int lLength, 
    [InAttribute] int lPrecision, 
    [InAttribute] int lScale, 
    [InAttribute] int lCodePage
)
/** @attribute DispIdAttribute(32) */ 
void SetOutputColumnDataTypeProperties (
    /** @attribute InAttribute() */ int lOutputID, 
    /** @attribute InAttribute() */ int lOutputColumnID, 
    /** @attribute InAttribute() */ DataType eDataType, 
    /** @attribute InAttribute() */ int lLength, 
    /** @attribute InAttribute() */ int lPrecision, 
    /** @attribute InAttribute() */ int lScale, 
    /** @attribute InAttribute() */ int lCodePage
)
DispIdAttribute(32) 
function SetOutputColumnDataTypeProperties (
    lOutputID : int, 
    lOutputColumnID : int, 
    eDataType : DataType, 
    lLength : int, 
    lPrecision : int, 
    lScale : int, 
    lCodePage : int
)

參數

  • lLength
    The length of the column.
  • lPrecision
    The total number of digits in the column for numeric data types.
  • lScale
    The number of digits of precision in the column for numeric data types.
  • lCodePage
    The code page of the column.

備註

The parameters of this method are properties of the IDTSOutputColumn90 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

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

IDTSDesigntimeComponent90 Interface
IDTSDesigntimeComponent90 Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace