IDTSDesigntimeComponent100.SetOutputColumnDataTypeProperties メソッド

定義

IDTSOutputColumn100オブジェクトのデータ型プロパティを設定します。

public:
 void SetOutputColumnDataTypeProperties(int lOutputID, int lOutputColumnID, Microsoft::SqlServer::Dts::Runtime::Wrapper::DataType eDataType, int lLength, int lPrecision, int lScale, int lCodePage);
[System.Runtime.InteropServices.DispId(32)]
public void SetOutputColumnDataTypeProperties(int lOutputID, int lOutputColumnID, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType eDataType, int lLength, int lPrecision, int lScale, int lCodePage);
[<System.Runtime.InteropServices.DispId(32)>]
abstract member SetOutputColumnDataTypeProperties : int * int * Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType * int * int * int * int -> unit
Public Sub SetOutputColumnDataTypeProperties (lOutputID As Integer, lOutputColumnID As Integer, eDataType As DataType, lLength As Integer, lPrecision As Integer, lScale As Integer, lCodePage As Integer)

パラメーター

lOutputID
Int32

IDTSOutput100オブジェクトのIDです。

lOutputColumnID
Int32

IDTSOutputColumn100オブジェクトのIDです。

eDataType
DataType

列の DataType

lLength
Int32

列の長さ。

lPrecision
Int32

列の数値的精度。

lScale
Int32

列の数値スケール。

lCodePage
Int32

コラムのコードページ。

属性

注釈

このメソッドのパラメータは、 IDTSOutputColumn100 オブジェクトの特性であり、個別に読み取り専用であり、この方法で設定する必要があります。 この方法は、これらの性質の値が互いに依存しているため必要です。 これらのプロパティを同時に更新する仕組みを提供し、コンポーネントとデータフロータスクが依存関係を強制できるようにします。 eDataTypeパラメータは他のパラメータ値の要件を決定します。

以下の表は、出力列のデータ型プロパティを設定する際に守るべきルールを一覧にしています。

データ型 Length [倍率] 精度 CodePage
小数 (DT_DECIMAL) 0 0 より大きく 28 以下。 0 0
DT_CY 0 0 0 0
DT_NUMERIC 0 0より大きく、28以下かつ精度より小さい。 1 以上 38 以下 0
DT_BYTES 0 より大きい 0 0 0
DT_STR 0 より大きく 8000 未満 0 0 0 以外の有効なコード ページ
DT_TEXT 0 より大きく 8000 未満 0 0 0 以外の有効なコード ページ
DT_WSTR 0 より大きく 4000 未満 0 0 0

適用対象