-
-
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
[Bug] Export-DbaCredential - -Identity doesn't filter, DAC duplication problem #5443
Comments
Error from 2nd bug: |
The first bug cannot be resolved simply by adding While this would fix the filtering of $InputObject the implementation of $InputObject is broken. The credentials used in script are obtained from code $creds = Get-DecryptedObject -SqlInstance $server -Type Credential This does not use either $InputObject or $Identity to filter. The issue with DAC being left open is also caused by Get-DecryptedObject Reason for this is explained in Adding Pooling=false; to the connection string as per the above article will resolve the second issue. |
Thank you for the fast response! |
Calling issues, and ultimately our work, "silly" is disrespectful, @asnest. We would appreciate if your words would reflect appreciation for the incredible amount of work we put into developing this toolset. @sqllensman, thank you for the time you've invested into researching and resolving this issue. |
@potatoqualitee Sorry, I didn't want to show any disrespect. |
Before submitting a bug report:
Collect output of following command and paste below:
Copy-DbaDatabase
? You can replicate it usingBackup-DbaDatabase ... | Restore-DbaDatabase ...
Environmental data
SQL Server:
Errors Received
<# OUTPUT of $error[0] | select * #>
Steps to Reproduce
Expected Behavior
There are 2 bugs:
Flag
-Identity
doesn't work. It doesn't filter.how I understood this could be fixed by changing
in Export-DbaCredential.ps1 file 81 row:
$InputObject = $InputObject | Where-Object Identity -in $Identity
to
$InputObject = $InputObject | Where-Object Name -in $Identity
Also I receive error with DAC when executes this function in MS SQL Server log:
and after this execution there exists DAC process with sleeping status:
(you can check it by this query)
Actual Behavior
The text was updated successfully, but these errors were encountered: