Cancel a Running Query
A 4-step recipe with Teradata. We can help you get access.
Recipe · 4 steps
Cancel a Running Query
with Teradata
Submit a query and cancel it if it is still running, otherwise end.
- Create a query session against the requested system.
- Submit the SQL statement and capture the query identifier.
- Retrieve the query status and branch on whether it is still running.
- Cancel the still-running query to free Vantage resources.
What you'll need to have ready
- system: Target Vantage system name.
- username: Database username used to open the session.
- database: Default database for the session.
- query: SQL statement to execute.
For your developer
Arazzo workflow teradata:cancel-running-query, 4 operations: createSession → executeQuery → getQueryStatus → cancelQuery. Specs on APIs.io.