-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
Invoke-DbaDbLogShipping: @restore_threshold not being passed when configuring monitor server causing syntax error #5308
Comments
Here's the full Name Value RestoreScheduleFrequencySub... Minutes PS D:\Code\dbatoolkit> Invoke-DbaDbLogShipping @params -verbose
VERBOSE: [09:22:23][New-DbaLogShippingPrimaryDatabase] Finished adding the primary database test_dbtest to log shipping.
VERBOSE: [09:22:23][New-DbaLogShippingPrimarySecondary] Configuring logshipping connecting the primary database test_dbtest to secondary database test_dbtest on SQL01.
VERBOSE: [09:22:23][New-DbaLogShippingPrimarySecondary] Finished configuring of primary database test_dbtest to secondary database test_dbtest.
VERBOSE: [09:22:24][New-DbaLogShippingSecondaryPrimary] Finished configuring of secondary database to primary database test_dbtest.
VERBOSE: [09:22:24][New-DbaLogShippingSecondaryDatabase] Configuring monitor server for secondary database test_dbtest.
WARNING: [09:22:24][Invoke-DbaQuery] [SQL01] Failed during execution | Incorrect syntax near ','.
WARNING: [09:22:24][New-DbaLogShippingSecondaryDatabase] Conversion failed when converting from a character string to uniqueidentifier.
VERBOSE: [09:22:24][Invoke-DbaDbLogShipping] Finished setting up log shipping.` |
Sorry, hit the wrong button above. |
Changed assignment of variables in sp_processlogshippingmonitorsecondary Fixes #5308
I changed the way the internal command handles the setting of the monitor server. @garyhampson Can you test the change using the development version of dbatools and the branch "fix-logshipping" in particular. |
thanks @sanderstad - will close as assumed fixed |
@garyhampson you there? Can you please let us know your locale as well? like |
if it was a locale issue, the fix is included in #5753 which will be released with dbatools 1.0 on Thursday morning 💯 |
I think this problem is still open. `PowerShell version: PSVersion 5.1.18362.752 dbatools Module version:
`WARNING: [11:37:47][Invoke-DbaQuery] [hostname\tfs2_d] Failed during execution | Incorrect syntax near ','.
`Get-WinSystemLocale LCID Name DisplayName 1033 en-US English (United States) ` I'm pathetically bad at Markdown styling, sorry. |
I will take a look at it |
@pgriffith1 I have made a change after looking through a lot of code. I believe this should solve the problem |
🚧🚨 This issue is being marked as stale due to 90 days of inactivity. If you would like this issue to remain open:
|
@pgriffith1 Are you still around? Please leave a message. |
I will close this for now, but you can reopen it if you have time to work on this. |
I'll ask @sanderstad if he can turn his change into a PR |
Will auto-close once the PR has been merged 🥳 Thanks everyone for your followups. |
I apologize for not being more helpful. I've not had the opportunity to
work with log shipping recently.
…On Tue, Jun 22, 2021 at 8:10 AM Chrissy LeMaire ***@***.***> wrote:
Will auto-close once the PR has been merged 🥳 Thanks everyone for your
followups.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5308 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJ4LNH3G577ZXQH6VOFUNDTUB4T7ANCNFSM4HBN7Z2A>
.
|
No problem, @pgriffith1 ! thanks for filing the issue and letting us know. |
Before submitting a bug report:
Collect output of following command and paste below:
Copy-DbaDatabase
, replicate issue usingBackup-DbaDatabase ... | Restore-DbaDatabase ...
Environmental data
SQL Server:
Steps to Reproduce
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: