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

The View vQDSCacheCleanupIndex contains incorrect data types for Retention and MinExecutionCount #38

Open
DatabaseJase opened this issue Aug 1, 2024 · 0 comments

Comments

@DatabaseJase
Copy link

Hello,

The data type of these columns in the view are defined as BIT but they are INT values in the stored procedure:

-- [Retention] BIT NOT NULL -- Hours since the last execution of the query.
-- [MinExecutionCount] BIT NOT NULL -- Minimum number of executions NOT delete the query.

,[CleanupParameters].value('(/Root/CleanupParameters/Retention)[1]','BIT') AS [Retention]
,[CleanupParameters].value('(/Root/CleanupParameters/MinExecutionCount)[1]','BIT') AS [MinExecutionCount]

The correct definition is INT to match the input parameters of the stored procedure.

Regards

Jason

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