IDTSBuffer100.SetErrorInfo Method (Int32, Int32, Int32, Int32)

 

Sets the error information for a row.

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

void SetErrorInfo(
	int hRow,
	int lOutputID,
	int lErrorCode,
	int lErrorColumn
)

Parameters

hRow
Type: System.Int32

The row handle.

lOutputID
Type: System.Int32

The ID of the error IDTSOutput100 that the row was sent to.

lErrorCode
Type: System.Int32

The component defined error code that occurred while processing the column.

lErrorColumn
Type: System.Int32

The lineage ID of the column that causes the error.

This method is used to provide error information for a row that is directed to an asynchronous error output. When directing error rows for synchronous outputs, the DirectErrorRow method is used and the error code and error column information are included as parameters to the method.

The error code, defined by the component, must be greater than zero.

If the IDTSOutput100 object specified by the lOutputID parameter is not an error output, an DTS_E_DIRECTTONONERROROUTPUT exception occurs.

Return to top
Show: