CManagedComponentWrapperClass.SetOutputColumnDataTypeProperties 方法

定义

public:
 virtual void SetOutputColumnDataTypeProperties(int lOutputID, int lOutputColumnID, Microsoft::SqlServer::Dts::Runtime::Wrapper::Sql2012::DataType eDataType, int lLength, int lPrecision, int lScale, int lCodePage) = Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSDesigntimeComponent100::SetOutputColumnDataTypeProperties;
[System.Runtime.InteropServices.DispId(32)]
public virtual 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
override this.SetOutputColumnDataTypeProperties : int * int * Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2012.DataType * int * int * int * int -> unit
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)

参数

lOutputID
Int32
lOutputColumnID
Int32
eDataType
DataType
lLength
Int32
lPrecision
Int32
lScale
Int32
lCodePage
Int32

实现

属性

注解

输出列的数据类型属性相互依赖,并要求根据列的 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

适用于