IDTSOutputColumn100.SetDataTypeProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
void SetDataTypeProperties(Microsoft::SqlServer::Dts::Runtime::Wrapper::Sql2014::DataType eDataType, int lLength, int lPrecision, int lScale, int lCodePage);
[System.Runtime.InteropServices.DispId(114)]
public void SetDataTypeProperties (Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2014.DataType eDataType, int lLength, int lPrecision, int lScale, int lCodePage);
[<System.Runtime.InteropServices.DispId(114)>]
abstract member SetDataTypeProperties : Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2014.DataType * int * int * int * int -> unit
Public Sub SetDataTypeProperties (eDataType As DataType, lLength As Integer, lPrecision As Integer, lScale As Integer, lCodePage As Integer)
参数
- eDataType
- DataType
- lLength
- Int32
- lPrecision
- Int32
- lScale
- Int32
- lCodePage
- Int32
- 属性
注解
此方法的参数是使用此方法设置其值的对象的各个只读属性 IDTSOutputColumn100 。 此方法是必需的,因为这些属性的值相互依赖。 此方法提供了一种机制,用于以原子方式更新这些属性,使数据流能够强制实施依赖项。 该 eDataType
参数用于确定要对参数值执行的其他检查。
下表显示了设置输出列的数据类型属性时强制实施的要求。
数据类型 | 长度 | 缩放 | 精度 | CodePage |
---|---|---|---|---|
DT_DECIMAL | 不强制执行 | 大于或等于 0,小于或等于 28。 | 不强制执行 | 不强制执行 |
DT_NUMERIC | 不强制执行 | 大于或等于 0,小于或等于 38,小于或等于指定的精度。 | 大于或等于 1,小于或等于 38。 | 不强制执行 |
DT_BYTES | 大于 0,小于或等于 8000。 | 不强制执行 | 不强制执行 | 不强制执行 |
DT_DBTIME2 DT_DBTIMESTAMP2 DT_DBTIMESTAMPOFFSET |
未强制实施。 | 大于或等于 0,小于或等于 7。 | 未强制实施。 | 未强制实施。 |
DT_STR | 大于 0 且小于或等于 8000。 | 不强制执行 | 不强制执行 | 不为 0。 |
DT_TEXT | 不强制执行 | 不强制执行 | 不强制执行 | 不为 0。 |
DT_WSTR | 大于 0 且小于或等于 4000。 | 不强制执行 | 不强制执行 | 不强制执行 |
有关 Integration Services 数据类型及其属性的详细信息,请参阅 Integration Services 数据类型。
SetDataTypeProperties 方法的使用在 开发自定义源组件、 使用同步输出开发自定义转换组件以及 使用异步输出开发自定义转换组件中简要介绍或演示。