Skip to content

Commit

Permalink
Bugfix 9607 passed SqlCredential to Get-DbaDbUdf from Set-DbaResource…
Browse files Browse the repository at this point in the history
…Governor
  • Loading branch information
darrenmaginnis committed Feb 28, 2025
1 parent be44563 commit 3c79935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Set-DbaResourceGovernor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function Set-DbaResourceGovernor {
if ($ClassifierFunction -eq "NULL") {
$server.ResourceGovernor.ClassifierFunction = $ClassifierFunction
} else {
$objClassifierFunction = Get-DbaDbUdf -SqlInstance $instance -Database "master" -Name $ClassifierFunction
$objClassifierFunction = Get-DbaDbUdf -SqlInstance $instance -SqlCredential $SqlCredential -Database "master" -Name $ClassifierFunction
if ($objClassifierFunction) {
$server.ResourceGovernor.ClassifierFunction = $objClassifierFunction
} else {
Expand Down

0 comments on commit 3c79935

Please sign in to comment.