Prerequisites

Before adding a Call Stored Procedure (OLEDB)Closed The Call Stored Procedure (OLEDB) tool executes database stored procedures and functions to provide read, write, and automated data processing. task step, ensure you have met the following:

Adding an OLEDB Data Source Connection

Before you can use the Call Stored Procedure (OLEDB) tool in a task step, you must create the connection to an OLEDB database first.

You open this interface from the resources tree — expand System > Tools > Input, Data Connectors, Output, or Execute and double-click Call Stored Procedure (OLEDB) in the items list.

  1. Click Add to create a new connection; select the required OLEDB driver or data source.
  2. Expand OLEDB Drivers to see all OLEDB drivers available on the client computer.

    Note: Any computer hosting a BPA Platform client that runs tasks using this connection, including the BPA Platform server, must have the selected driver installed on the computer. Without the driver, the task will fail.

  3. Once a driver has been selected, add the connection details to the database. Note that the configuration interface is different for every driver available.

For more information, see Adding OLEDB Connections.

Adding a New Task Step

Even though the Call Stored Procedure (OLEDB) tool is found under three different tool categories, they do not affect the functionality of the tool.

To add a new Call Stored Procedure (OLEDB) step to an existing task:

  1. Open the relevant task (if creating a new task, see How to Create a Basic Task).
  2. Either:
Click and drag the Call Stored Procedure (OLEDB) icon from the Task Browser to the task Design area.

–OR–

From the task's Design tab, right-click on empty space and select New > then either Data Connectors > Call Stored Procedure (OLEDB), Execute > Call Stored Procedure (OLEDB), Input > Call Stored Procedure (OLEDB), or Output > Call Stored Procedure (OLEDB).
  1. In the General tab, name your task step and select the relevant input recordset or document.
  2. Go to the Main tab and choose the relevant stored procedure. Map the BPA Platform variables to the relevant stored procedure parameters.
  3. If the store procedure returns a recordset, go to the Recordset tab to check the recordset structure, else go to the Options tab (next step).
  4. Go to the Options tab and select the relevant error handling options for this task step.

  5. Click  to save the task step.