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

#3356 Fix for xp_readerrorlog #3361

Conversation

Montro1981
Copy link
Contributor

#3356 Fix for xp_readerrorlog

After reviewing the current code I noticed that bluntly disabling the check wouldn't be the preferred way forward. The code was doing checks for Database Instant File Initialization in other places as well that might succeed even if we don't have permissions on xp_readerrorlog, so chose to integrate a TRY CATCH block in the check itself.

Changed the @@ROWCOUNT > 0 to a more descriptive IF statement

Copy link
Member

@BrentOzar BrentOzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request. Looks good, merging into the dev branch, will be in the next release with credit to you in the release notes.

@BrentOzar BrentOzar merged commit 7c39562 into BrentOzarULTD:dev Oct 10, 2023
@Montro1981 Montro1981 deleted the SQL-Server-First-Responder-Kit_3356_xp_readerrorlog branch October 11, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants