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 #26

Open
dzsquared opened this issue Jan 16, 2025 · 0 comments
Open

WAIT_STATS_CAPTURE_MODE #26

dzsquared opened this issue Jan 16, 2025 · 0 comments

Comments

@dzsquared
Copy link
Contributor

The following syntax is determined as invalid by TSql160Parser and TSql150Parser - is flagged in VS Code mssql:

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-

(also missing from scriptdom microsoft/SqlScriptDOM#100)

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

No branches or pull requests

1 participant