CManagedComponentWrapperClass.SetOutputColumnDataTypeProperties Method
Sets the data type properties of an IDTSOutputColumn90 object.
Spazio dei nomi: Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly : Microsoft.SqlServer.DTSPipelineWrap (in microsoft.sqlserver.dtspipelinewrap.dll)
Sintassi
'Dichiarazione
<DispIdAttribute(32)> _
Public Overridable 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 _
) Implements IDTSDesigntimeComponent90.SetOutputColumnDataTypeProperties
[DispIdAttribute(32)]
public virtual void IDTSDesigntimeComponent90.SetOutputColumnDataTypeProperties (
[InAttribute] int lOutputID,
[InAttribute] int lOutputColumnID,
[InAttribute] DataType eDataType,
[InAttribute] int lLength,
[InAttribute] int lPrecision,
[InAttribute] int lScale,
[InAttribute] int lCodePage
)
[DispIdAttribute(32)]
public:
virtual void SetOutputColumnDataTypeProperties (
[InAttribute] int lOutputID,
[InAttribute] int lOutputColumnID,
[InAttribute] DataType eDataType,
[InAttribute] int lLength,
[InAttribute] int lPrecision,
[InAttribute] int lScale,
[InAttribute] int lCodePage
) = IDTSDesigntimeComponent90::SetOutputColumnDataTypeProperties
J# non supporta la dichiarazione di nuove implementazioni di interfacce esplicite ma ne supporta l'utilizzo.
JScript non supporta la dichiarazione di nuove implementazioni di interfacce esplicite ma ne supporta l'utilizzo.
Parametri
- lOutputID
The ID of the IDTSOutputColumn90 object.
- lOutputColumnID
The ID of the IDTSOutputColumn90 object.
- eDataType
The DataType to assign to the column.
- lLength
The length of the column.
- lPrecision
The total number of digits in the column.
- lScale
The number of decimal places (digits to the right of the decimal point) allowed in the column.
- lCodePage
The character set of the output column.
Osservazioni
The data type properties of an output column are dependent on each other and require that specific rules be followed based on the DataType of the column. This method enables a component to enforce these rules by setting all of the properties at once.
The following table lists the rules that apply 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 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 |
Thread Safety
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.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
CManagedComponentWrapperClass Class
CManagedComponentWrapperClass Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace