Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAIT_STATS_CAPTURE_MODE not recognized as valid query_store_option_list parameter #100

Open
martyelliott7 opened this issue Nov 19, 2024 · 0 comments · May be fixed by #110
Open

WAIT_STATS_CAPTURE_MODE not recognized as valid query_store_option_list parameter #100

martyelliott7 opened this issue Nov 19, 2024 · 0 comments · May be fixed by #110
Assignees

Comments

@martyelliott7
Copy link

The following syntax is determined as invalid by TSql160Parser and TSql150Parser:

ALTER DATABASE [database_name]
SET QUERY_STORE = ON
(
OPERATION_MODE = READ_WRITE,
CLEANUP_POLICY = (STALE_QUERY_THRESHOLD_DAYS = 7),
DATA_FLUSH_INTERVAL_SECONDS = 900,
MAX_STORAGE_SIZE_MB = 10000,
INTERVAL_LENGTH_MINUTES = 60,
SIZE_BASED_CLEANUP_MODE = AUTO,
QUERY_CAPTURE_MODE = AUTO,
MAX_PLANS_PER_QUERY = 200,
WAIT_STATS_CAPTURE_MODE = ON
);
go

It returns with the following error: Incorrect syntax near 'WAIT_STATS_CAPTURE_MODE'.

MSFT documentation on this option: https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-set-options?view=sql-server-ver16#wait_stats_capture_mode--on--off-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants