Query history
The query history shows SQL queries performed using SQL warehouses.
You can use the information available through this screen to help you debug issues with queries.
This section describes how to work with query history using the UI. To work with query history using the API, see Query History API 2.0.
View query history
To view the history of all executions of a query:
- Click
Query History in the sidebar. - Optionally, click Duration to sort the list by duration. By default, the list is sorted by start time.
- Click the name of a query to see more details, such as the SQL command and the execution details.
You can filter the list by user, service principal, date range, SQL warehouse, and query status.
If you’re a non-admin user without CAN_MANAGE permissions, you can only view your own queries in Query History.
Note
Queries shared by a user with Run as Owner permissions to another user with Can Run permissions appear in the query history of the user executing the query and not the user that shared the query.
View query details
To view details about a query, such as its duration, SQL command, number of rows returned, and I/O performance:
View query history.
Click the name of a query.

Brief information about a query’s performance appears, such as time spent in each task, rows returned, and I/O performance.
For more detailed information about the query’s performance,including its execution plan, click View Query Profile at the bottom of the page. For more details, see Query profile.
Terminate an executing query
To terminate a long-running query started by you or another user:
View query history.
Click the name of a query.
Next to Status, click Cancel.
Note
Cancel only appears when a query is running.
The query is terminated and its status changes to Canceled.
Feedback
Submit and view feedback for

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
