Forum Discussion

mstechmach's avatar
mstechmach
Copper Contributor
Feb 27, 2024

ERROR:Powershell script from SQL management studio

Hello, I was trying to execute a PowerShell script from SQL management Studio as shown blow.   DECLARE @cmd VARCHAR(1000); SET @cmd = 'powershell.exe -File c:\temp\PowerShell.ps1'; EXEC xp_cmdsh...

Resources