--- title: "Calling a stored procedure" slug: "phase-4-stored-procedures" updated: 2026-10-06T06:20:37Z published: 2026-10-06T06:20:37Z canonical: "docs.lobstersoftware.com/phase-4-stored-procedures" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Calling a stored procedure In addition to the possibility to call a stored procedure in Phase 3 using the function [call db procedure a, alias b,c,d,e,f](/v1/docs/en/basic-db-call-proc-with-list), there is the option "Stored Procedure" in target structure node attribute **SQL mode**. If this mode is selected, target structure node attribute **SQL table/procedure** does not expect the table name, but the command to call the stored procedure. However, the call of the stored procedure will take place in Phase 4, in this case. Suppose you want to call a stored procedure `insert_proc` inside a MySQL database. In that case, the syntax is | call insert_proc(@columns@) | | --- | The placeholder `@columns@` must be written exactly like this. This particular wildcard is resolved at runtime and then contains the values of all active fields of that node that are not calculation fields and that have a non-empty [SQL column name](/docs/en/phase-4). The SQL column name itself does not master, but it cannot be empty. The order of the parameters results from the order of the fields in the node. The types of the parameters correspond to the field types. ## Database-specific syntax The syntax depends on the database type. The *call* command used above, for example, is MySQL-specific. For other database systems, you may need another command, e.g. `execute` (Oracle). Please talk to your database administrator for details. ### MSSQL For MSSQL, curly brackets must be added. This can look like this, for example: `{call insert_proc(@columns@)}` You can find more information on this in the documentation of the function [call db procedure a, alias b,c,d,e,f](/v1/docs/en/basic-db-call-proc-with-list). Mapping: Rules transfer the data from the source structure to the target structure. This is the core of the profile. An optional phase in a profile between mapping and the integration unit. In Phase 4, the profile writes target structure data directly to a database. This phase is skipped if no database write operation is configured.