파워셸에서 sqlcmd를 실행하는 방법? powershell에 native sqlcmd 명령어가 포함된 문자열이 있습니다.명령 자체는 cmd.exe에서 성공적으로 실행될 수 있습니다.저는 그들을 파워셸에서 실행하는 데 어려움이 있습니다.누가 도와줄 수 있습니까?감사해요. 이것은 sql.sql 입니다. select @@servername go select @@servicename cmd.exe에서 sqlcmd 명령을 실행할 때의 결과입니다. C:\Users\test>sqlcmd -S "(local)\instance1" -U a -P a -i "c:\temp\sql.sql" -------------------------------------------------- thesimpsons\INSTANCE1 (1..