Using Stored Procedures
To create a Connector to a database stored procedure so that it can be consumed inside a service:
- Click the database icon

- Select a Source from the drop down list or click New to create a new one.
- If you are creating a New connection, enter the database server URL / IP address / computer name in the Server input box. NOTE: A port can be specified by typing a , and the port number e.g. mysqlserver, 1189. If no port is specified Warewolf will use the default SQL Server port of 1433.
- Select either Windows or User authentication.
- If you selected User authentication, provide your credentials.
- The Test Connection button should be enabled, click it.
- If your connection is valid, select the Database you want to use from the drop down list. This database will be the source that you have created.
- Click Save Connection.
- Select an action from the list available by clicking on it. You can click the link under Provide Test Values to see the TSQL of the function or stored procedure.
- If inputs are required, insert them. This step enables Warewolf to get an idea of what data will be returned from the connector so the output maps can be built. The execution happens in a transaction that is not committed so this data will not enter your database.
- Click Test.
- In Defaults and Mapping, enter any default values you want to use as inputs. These will be used at run time if no data is mapped in or the mapped in data is empty.
- If a field is required for execution, select Required Field.
- To pass Null when the value is empty, select Empty is Null.
- To rename the output fields that will be seen, simply put the name you would like in the input box next to the name you do not like.
- To not return a particular field, simply remove its name. It will not be mapped out.
- By default the results will be put into a recordset that has the name of the procedure or function being used. You can change this to a more suitable / manageable name if require in the Recordset Name field.
- Click OK.
- Save your Connector.
- Locate the connector you created in the Explorer window and drag it onto a service to use it.
Servicio de atención al cliente por UserEcho