No votes yet


Overview

Data flow transformation, executing SQL command for each row in a data set. It is similar to the standard OLE DB Command transformation, however the executed SQL command is for the ADO.NET connection manager.


Setup

The script has the following parameters:

  • Connection - specifies ADO.NET connection manager.
  • Statement - specifies SQL statement to execute.
  • Timeout - specifies number of seconds before command times out. Set 0 for infinite time-out.
  • ErrorRowDisposition - specifies how error rows are handled:
    • RD_NotUsed - Same as RD_FailComponent.
    • RD_IgnoreFailure - Errors are ignored.
    • RD_RedirectRow - Errors are redirected to 'Error Output'.
    • RD_FailComponent - Errors cause component to fail.
  • ParseExpression - specifies regular expression to parse statement parameters. This option is provided because there is no standard specification of parameters in ADO.NET. You can read more about ADO.NET parameters here. Sample regular expressions for specific providers:
    • SQL Server - @(\w+)
    • OLEDB, ODBC - (?'param'\?)
    • Oracle - :(\w+)
  • InputColumns - specifies input columns for command parameters.

Requirements

Depends on COZYROC Script Component Plus component for implementing parameters user interface.
Requires installation of COZYROC SSIS+ 1.4 SR-1 library.


Library references

  • System
  • System.Data
  • Microsoft.SqlServer.TxScript
  • Microsoft.SqlServer.PipelineHost
  • Microsoft.SqlServer.DTSPipelineWrap
  • Microsoft.SqlServer.DTSRuntimeWrap
  • Microsoft.SqlServer.ManagedDTS
  • CozyRoc.SSISPlus

ScriptMain