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

Fix backup dbadatabase dateconversion #5753

Merged
merged 4 commits into from
Jun 17, 2019
Merged

Fix backup dbadatabase dateconversion #5753

merged 4 commits into from
Jun 17, 2019

Conversation

GeorgePalacios
Copy link
Contributor

@GeorgePalacios GeorgePalacios commented Jun 17, 2019

Type of Change

Purpose

To fix locale issues in datetime conversions under Get-DbaBackupHistory - due to '-' character certain locales couldn't handle the implicit conversion

Approach

Change to explicit conversion using CONVERT and format 120 (yyyy-MM-dd hh:mi:ss)

Commands to test

Get-DbaBackupHistory with -Since specified

GeorgePalacios and others added 4 commits June 17, 2019 11:38
The '-' character was failing to implicitly convert in T-SQL from string to datetime - due to certain locales. Explicit conversion should resolve using known format 120.
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.

[Bug] Copy-DbaDatabase | Conversion failed
2 participants