Forum Discussion

GlynLamb's avatar
GlynLamb
Copper Contributor
Aug 18, 2021

Script works in powershell and command line but fails from SQLAgent job step

I have a script using DBAtools cmd Get-DbaDatabase -sqlInstance $Inst which converts to dbaDataTable and writes to a SQL ServerInstance. If I run the script from Powershell ISE works without issue I...

Resources