CManagedComponentWrapperClass.SetOutputColumnDataTypeProperties Method (Int32, Int32, DataType, Int32, Int32, Int32, Int32)

 

Applies To: SQL Server 2016 Preview

Sets the data type properties of an IDTSOutputColumn100 object.

Namespace:   Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly:  Microsoft.SqlServer.DTSPipelineWrap (in Microsoft.SqlServer.DTSPipelineWrap.dll)

Syntax

[DispIdAttribute(32)]
public virtual void SetOutputColumnDataTypeProperties(
    int lOutputID,
    int lOutputColumnID,
    DataType eDataType,
    int lLength,
    int lPrecision,
    int lScale,
    int lCodePage
)
public:
[DispIdAttribute(32)]
virtual void SetOutputColumnDataTypeProperties(
    int lOutputID,
    int lOutputColumnID,
    DataType eDataType,
    int lLength,
    int lPrecision,
    int lScale,
    int lCodePage
)
[<DispIdAttribute(32)>]
abstract SetOutputColumnDataTypeProperties : 
        lOutputID:int *
        lOutputColumnID:int *
        eDataType:DataType *
        lLength:int *
        lPrecision:int *
        lScale:int *
        lCodePage:int -> unit
[<DispIdAttribute(32)>]
override SetOutputColumnDataTypeProperties : 
        lOutputID:int *
        lOutputColumnID:int *
        eDataType:DataType *
        lLength:int *
        lPrecision:int *
        lScale:int *
        lCodePage:int -> unit
<DispIdAttribute(32)>
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
)

Parameters

  • lPrecision
    Type: System.Int32

    The total number of digits in the column.

  • lScale
    Type: System.Int32

    The number of decimal places (digits to the right of the decimal point) allowed in the column.

  • lCodePage
    Type: System.Int32

    The character set of the output column.

Implements

IDTSDesigntimeComponent100.SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

Remarks

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

See Also

CManagedComponentWrapperClass Class
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace

Return to top