SHOW TRANSACTIONS

statementsupportedQueries & DML

docs.snowflake.com ↗

List all running transactions. The command can be used to show transactions for the current user or all users in the account.

Syntax

supportedpartialnot supportednot scored

SHOW TRANSACTIONS [ IN ACCOUNT ]

Parameters

NameRequiredDescription
IN ACCOUNTShows all transactions across all users in the account. It can only be used by users with the ACCOUNTADMIN role (i.e. account administrators).

Usage notes

Output

The command output shows transaction metadata in the following columns: Column | Description id | Transaction ID (a signed 64-bit integer). user | Current user. session | Session ID. name | User-defined name or system-generated name (UUID) for the transaction. started_on | Timestamp that specifies when the transaction started executing. state | Transaction state: running. scope | ID of the operation that created a stored procedure in a scoped transaction. 0 for non-scoped transactions.

Example

In this example, two sessions are being run by the same user, with one transaction in progress for each session.

See also

Referenced by