The OLE DB Command transformation runs an SQL statement for each row in a data flow. For example, you can run an SQL statement that inserts, updates, or deletes rows in a database table.
You can configure the OLE DB Command Transformation in the following ways:
- Provide the SQL statement that the transformation runs for each row.
- Specify the number of seconds before the SQL statement times out.
- Specify the default code page.
Typically, the SQL statement includes parameters. The parameter values are stored in external columns in the transformation input, and mapping an input column to an external column maps an input column to a parameter. For example, to locate rows in the
DimProduct table by the value in their
ProductKey column and then delete them, you can map the external column named
Param_0 to the input column named
ProductKey, and then run the SQL statement
DELETE FROM DimProduct WHERE ProductKey = ?
.. The OLE DB Command transformation provides the parameter names and you cannot modify them. The parameter names are
Param_0,
Param_1, and so on.
http://msdn.microsoft.com/en-us/library/ms141138.aspx
No comments:
Post a Comment