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

New-DcnImage: SQL script can't run before image finalization #170

Closed
4 tasks done
lowlydba opened this issue Feb 16, 2022 · 0 comments · Fixed by #171
Closed
4 tasks done

New-DcnImage: SQL script can't run before image finalization #170

lowlydba opened this issue Feb 16, 2022 · 0 comments · Fixed by #171

Comments

@lowlydba
Copy link
Contributor

lowlydba commented Feb 16, 2022

Before submitting the bug

  • Ensure you are able to reproduce it on the latest released version (we release often)
  • Verified this bug is not already reported in an issue
  • Verified errors are not related to permissions
  • Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)

Describe the bug
The function attempts to use out of date parameter names for Invoke-DbaQuery (DatabaseName, not Database):

$params = @{
SqlInstance = $DestinationSqlInstance
SqlCredential = $DestinationSqlCredential
DatabaseName = $tempDbName
Query = $ExecuteSQLCommand
EnableException = $EnableException
}
Invoke-DbaQuery @params

Which results in not being able to run the provided sql script/file when creating the image.

@lowlydba lowlydba changed the title New-DcnImage: Can't save metadata to SQL Server New-DcnImage: SQL script can't run before image finalization Feb 16, 2022
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 a pull request may close this issue.

1 participant