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-SqlPermission (used by Copy-DbaLogin) - Fix for using LoginRenameHashtable together with user different to login #9313

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

andreasjordan
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes Error copying sql permissions with Copy-DbaLogin when the database user and server user does not match. #9283 )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (affects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

See issue for details.

This solves the issue, but do we want to leave the user with the old name in the database? Or should the old user be deleted?

@potatoqualitee
Copy link
Member

safest way is to leave the old user and give a warning that includes the command to run to delete the user? or opt-in delete user with a switch?

@potatoqualitee potatoqualitee merged commit eb28dfd into development Apr 11, 2024
12 checks passed
@potatoqualitee potatoqualitee deleted the UpdateSqlPermission_fix branch April 11, 2024 07:41
@potatoqualitee
Copy link
Member

thank you btw!

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.

Error copying sql permissions with Copy-DbaLogin when the database user and server user does not match.
2 participants