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

Update sp_DatabaseRestore.sql #3443

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

gdoddsy
Copy link
Contributor

@gdoddsy gdoddsy commented Feb 18, 2024

@RunStoredProcAfterRestore should not be inside the @TestRestore check

@RunStoredProcAfterRestore should not be inside the @TestRestore check
@gdoddsy
Copy link
Contributor Author

gdoddsy commented Feb 18, 2024

@BrentOzar - suspect there's a bug in the change you made. If the plan is to run this for any situation, then the stored proc should run whether @TestRestore is true or not.

@BrentOzar BrentOzar merged commit 213f104 into BrentOzarULTD:dev Feb 19, 2024
3 checks passed
@BrentOzar BrentOzar added this to the 2024-03 Release milestone Feb 19, 2024
@BrentOzar
Copy link
Member

Sorry about that! That's weird, I just did a search/replace on the parameter name and edited a description.

@gdoddsy
Copy link
Contributor Author

gdoddsy commented Feb 19, 2024

I had it inside the @TestRestore because when I wrote the original change it was only going to run if you were doing a test. Your change to make it always run makes sense but means it should move outside that block.

All good!

@gdoddsy gdoddsy deleted the issue_3429 branch March 7, 2024 04:37
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 this pull request may close these issues.

2 participants