Skip to content

Commit

Permalink
Merge pull request #770 from Splaxi/development
Browse files Browse the repository at this point in the history
Fix: #769
  • Loading branch information
Splaxi authored Oct 24, 2023
2 parents b57835b + b424f60 commit 14c4804
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
7 changes: 5 additions & 2 deletions d365fo.tools/internal/functions/get-azureserviceobjective.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ function Get-AzureServiceObjective {

[switch] $EnableException
)

$sqlCommand = Get-SqlCommand @PsBoundParameters -TrustedConnection $false

$Params = Get-DeepClone $PSBoundParameters
if($Params.ContainsKey("EnableException")){$null = $Params.Remove("EnableException")}

$sqlCommand = Get-SqlCommand @Params -TrustedConnection $false

$commandText = (Get-Content "$script:ModuleRoot\internal\sql\get-azureserviceobjective.sql") -join [Environment]::NewLine

Expand Down
5 changes: 4 additions & 1 deletion d365fo.tools/internal/functions/get-instancevalues.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ function Get-InstanceValues {
[switch] $EnableException
)

$sqlCommand = Get-SqlCommand @PsBoundParameters
$Params = Get-DeepClone $PSBoundParameters
if($Params.ContainsKey("EnableException")){$null = $Params.Remove("EnableException")}

$sqlCommand = Get-SqlCommand @Params

$commandText = (Get-Content "$script:ModuleRoot\internal\sql\get-instancevalues.sql") -join [Environment]::NewLine

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ Function Invoke-ClearAzureSpecificObjects {
[switch] $EnableException
)

$sqlCommand = Get-SQLCommand @PsBoundParameters -TrustedConnection $false
$Params = Get-DeepClone $PSBoundParameters
if($Params.ContainsKey("EnableException")){$null = $Params.Remove("EnableException")}

$sqlCommand = Get-SqlCommand @Params -TrustedConnection $false

$commandText = (Get-Content "$script:ModuleRoot\internal\sql\clear-azurebacpacdatabase.sql") -join [Environment]::NewLine

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ Function Invoke-ClearSqlSpecificObjects {
[switch] $EnableException
)

$sqlCommand = Get-SQLCommand @PsBoundParameters
$Params = Get-DeepClone $PSBoundParameters
if($Params.ContainsKey("EnableException")){$null = $Params.Remove("EnableException")}

$sqlCommand = Get-SqlCommand @Params

$commandText = (Get-Content "$script:ModuleRoot\internal\sql\clear-sqlbacpacdatabase.sql") -join [Environment]::NewLine

Expand Down

0 comments on commit 14c4804

Please sign in to comment.