Skip to content

Commit 305120c

Browse files
20211028 1403
1 parent cd48a31 commit 305120c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/synapse-analytics/sql/query-history-storage-analysis.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ ALTER DATABASE <database_name>
3535
SET QUERY_STORE = ON;
3636
```
3737

38+
For example:
39+
40+
```sql
41+
ALTER DATABASE [SQLPOOL1]
42+
SET QUERY_STORE = ON;
43+
```
44+
3845
You can run performance auditing and troubleshooting related tasks by finding last executed queries, execution counts, longest running queries, queries with maximum physical I/O leads. Please refer to [Monitoring Performance By Using the Query Store](/sql/relational-databases/performance/monitoring-performance-by-using-the-query-store#performance) for sample queries.
3946

4047
Advantages:

0 commit comments

Comments
 (0)