SYSTEM$CANCEL_QUERY

functionsupportedQueries & DML

docs.snowflake.com ↗

System functions

Cancels the specified query (or statement) if it is currently active/running.

Syntax

SYSTEM$CANCEL_QUERY( <query_id> )

Parameters

NameRequiredDescription
query_idrequiredIdentifier for the query to cancel. To obtain the ID for a query executed within the last 14 days, log into the web interface and go to the History page.

Usage notes

See also

Referenced by