-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
New-DbaDbSnapshot doesnt create snapshot on a mirrored database #5631
Comments
Thank you for the details! 🏆 Will turn that Verbose into a throw/continue since it does not seem possible for SMO to do. |
(Can you get it to work in regular T-SQL?) |
Yes I can make it working in T-SQL I think the problem is when New-DbaDbSnapshot tries to create it its checking if the database in question is accessible. A mirrored database is of course never directly accessible but can be snapshotted. So in line 187 it could be checking this "-and $db.IsMirroringEnabled -ne $true" :
|
excellent info, thank you! |
Environmental information
SQL Server:
Report
New-DbaDbSnapshot doesn't create a snapshot when run on a mirrored database. Works on normal ones
Errors Received
Steps to Reproduce
Expected Behavior
Snapshot is created on Mirrored database
Actual Behavior
No snapshot is created. Verbose message is:
The text was updated successfully, but these errors were encountered: