| title | sp_query_store_flush_db (Transact-SQL) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.custom | |||||
| ms.date | 03/24/2017 | ||||
| ms.prod | sql-non-specified | ||||
| ms.reviewer | |||||
| ms.suite | |||||
| ms.technology |
|
||||
| ms.tgt_pltfrm | |||||
| ms.topic | language-reference | ||||
| f1_keywords |
|
||||
| dev_langs |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 580c03ae-57fc-4562-a6bb-5ec89521e38c | ||||
| caps.latest.revision | 7 | ||||
| author | BYHAM | ||||
| ms.author | rickbyh | ||||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-ss2016-asdb-xxxx-xxx_md]
Flushes the in-memory portion of the Query Store data to disk.
Transact-SQL Syntax Conventions
sp_query_store_flush_db [;]
0 (success) or 1 (failure)
Requires the EXECUTE permission on the database, and DELETE permission on the query store catalog views.
The following example flushes the in-memory portion of the Query Store data to disk.
EXEC sp_query_store_flush_db;
sp_query_store_force_plan (Transact-SQL)
sp_query_store_remove_query (Transact-SQL)
sp_query_store_unforce_plan (Transact-SQL)
sp_query_store_reset_exec_stats (Transact-SQL)
sp_query_store_remove_plan (Transct-SQL)
sp_query_store_reset_exec_stats (Transact-SQL)
Query Store Catalog Views (Transact-SQL)
Monitoring Performance By Using the Query Store