sp_query_store_clear_message_queues (Transact-SQL)
Applies to: SQL Server 2022 (16.x)
Clears all queued (non-persisted) Query Store messages pending for the replica against which the command is executed. sp_query_store_clear_message_queues
is used when Query Store for secondary replicas has been enabled.
Transact-SQL syntax conventions
Syntax
sp_query_store_clear_message_queues
[ ; ]
Return code values
0
(success) or 1
(failure).
Permissions
Requires the ALTER permission on the database.
Examples
The following example clears all queued (non-persisted) Query Store messages pending. The action applies to the replica against which the command is executed.
EXEC sp_query_store_clear_message_queues;
Related content
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για