IDTSDesigntimeComponent100.SetOutputColumnDataTypeProperties 方法

定義

public:
 void SetOutputColumnDataTypeProperties(int lOutputID, int lOutputColumnID, Microsoft::SqlServer::Dts::Runtime::Wrapper::Sql2012::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.Sql2012.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.Sql2012.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
lOutputColumnID
Int32
eDataType
DataType
lLength
Int32
lPrecision
Int32
lScale
Int32
lCodePage
Int32
屬性

備註

這個方法的參數是 IDTSOutputColumn100 物件的屬性,這些屬性是個別唯讀的,而且必須使用這個方法來設定。 這個方法是必要的,因為這些屬性的值相依于彼此。 它提供一種機制,可同時更新這些屬性,並可讓元件和資料流程工作強制執行相依性。 eDataType參數規定其他參數值的需求。

下表列出設定輸出資料行的資料類型屬性時,必須遵守的規則。

DataType 長度 調整 精確度 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

適用於