Skip to content

Commit 484ac72

Browse files
committed
Let the results return as objct instead of dataset
1 parent 6112e26 commit 484ac72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

functions/Get-PSDCClone.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
try {
100100
$results = @()
101-
$results = Invoke-DbaSqlQuery -SqlInstance $pdcSqlInstance -Database $pdcDatabase -Query $query #-As PSObject
101+
$results = Invoke-DbaSqlQuery -SqlInstance $pdcSqlInstance -Database $pdcDatabase -Query $query -As PSObject
102102
}
103103
catch {
104104
Stop-PSFFunction -Message "Could not execute query" -ErrorRecord $_ -Target $query

0 commit comments

Comments
 (0)