Forum Discussion
amitaiemd
Jul 06, 2023Copper Contributor
how to execute sql script via powershell in azure pipelines yml
Hi Team, I have a requirement where I need to execute sql script in SQL Server(not Azure one) via pipelines yml. I hav got host name, userid and password. I need a sample powershell command whi...
amitaiemd
Jul 07, 2023Copper Contributor
Hi Leon,
I followed your solution, but I am still getting the exception as " Exception calling "start" with "0" argument(s):
"The system cannot find the file specified at C:\Agents\<agent name>\_work\_temp\3767f05f-0ecl-4c51-ad6a-d30beedccec6.ps1:23 char:1 + $process.Start() | Out-Null". I double checked the script path I given is correct.
Please suggest how to solve this.
amitaiemd
Jul 10, 2023Copper Contributor
Hi Leon LeonPavesic
Could you please help me fix this, I am stuck completely here.
Thanks