File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 begin {
7777
7878 # Get the module configurations
79- $pdcSqlInstance = Get-PSFConfigValue - FullName psdatabaseclone.database.Server
79+ $pdcSqlInstance = Get-PSFConfigValue - FullName psdatabaseclone.database.server
8080 $pdcDatabase = Get-PSFConfigValue - FullName psdatabaseclone.database.name
8181 if (-not $pdcCredential ) {
8282 $pdcCredential = Get-PSFConfigValue - FullName psdatabaseclone.database.credential - Fallback $null
113113
114114 try {
115115 $results = @ ()
116- $results = Invoke-DbaSqlQuery - SqlInstance $pdcSqlInstance - SqlCredential $PSDCSqlCredential - Database $pdcDatabase - Query $query -As PSObject
116+ $results = Invoke-DbaSqlQuery - SqlInstance $pdcSqlInstance - SqlCredential $pdcCredential - Database $pdcDatabase - Query $query -As PSObject
117117 }
118118 catch {
119119 Stop-PSFFunction - Message " Could not execute query" - ErrorRecord $_ - Target $query
You can’t perform that action at this time.
0 commit comments