We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: