Enabling Query Store with Transact-SQL

The same action can be performed by using Transact-SQL. Use the following statement to enable Query Store in the WideWorldImporters database:

ALTER DATABASE WideWorldImporters SET QUERY_STORE = ON;

Get SQL Server 2017 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.