Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Account address (URL)StringNoYour Snowflake account address, e.g. https://myorg-myaccount.snowflakecomputing.com.
ProcedureStringYesProcedure name, written as DATABASE.SCHEMA.NAME (or just NAME).
ParametersAnyNoArgument values: a list in the procedure's order, or a dictionary of argument name to value.
Wait (seconds)NumberNo3000How long to wait for the procedure to finish.
WarehouseStringNoWarehouse that runs the query. Leave empty for the user's default warehouse.
DatabaseStringNoDatabase of the table when table_name has no database.
SchemaStringNoSchema of the table when table_name has no schema.
RoleStringNoRole to run as. Leave empty for the user's default role.
TokenCredentialNoAccess 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 typeStringNoOAUTHKind of token in the vault: OAUTH, KEYPAIR_JWT or PROGRAMMATIC_ACCESS_TOKEN.

Outputs​

OutputTypeWhat it is
resultAnyThe value the procedure returned (the first cell of its result).
tableTableThe whole result, for a procedure that returns a table.
statement_handleStringId of the statement.