Run stored procedure
Call a stored procedure with values for its arguments, sent apart from the SQL, and return what it gives back (G6).
Command in the Snowflake toolkit · id ooa.snowflake/call_procedure · 10 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Account address (URL) | String | No | Your Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com. | |
| Procedure | String | Yes | Procedure name, written as DATABASE.SCHEMA.NAME (or just NAME). | |
| Parameters | Any | No | Argument values: a list in the procedure's order, or a dictionary of argument name to value. | |
| Wait (seconds) | Number | No | 3000 | How long to wait for the procedure to finish. |
| Warehouse | String | No | Warehouse that runs the query. Leave empty for the user's default warehouse. | |
| Database | String | No | Database of the table when table_name has no database. | |
| Schema | String | No | Schema of the table when table_name has no schema. | |
| Role | String | No | Role to run as. Leave empty for the user's default role. | |
| Token | Credential | No | Access token from the vault: an OAuth token, a key-pair JWT or a programmatic access token. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Token type | String | No | OAUTH | Kind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN. |
Outputs
| Output | Type | What it is |
|---|---|---|
| result | Any | The value the procedure returned (the first cell of its result). |
| table | Table | The whole result, for a procedure that returns a table. |
| statement_handle | String | Id of the statement. |