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:
- IgnoreFailure - Errors are ignored.
- RedirectRow - Errors are redirected to 'Error Output'.
- 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.
Configuration
To use this script, you would need to load it in COZYROC JavaScript Component. If you are using COZYROC SSIS+ 2.0 or later, after selecting the corresponding script type and opening the component editor, you can select the script from a dropdown list with the pre-built scripts. For COZYROC SSIS+ 1.9, you can download the JavaScript file and browse to it via the "Import JavaScript code" button.
ADO.NET_Command_Transformation.jsKnowledge Base
COZYROC SSIS+ Components Suite is free for testing in your development environment.
A licensed version can be deployed on-premises, on Azure-SSIS IR and on COZYROC Cloud.