PowerShell Invoke-Sqlcmd switches into sqlps session

前端 未结 3 1441
梦如初夏
梦如初夏 2021-02-12 09:56

I am writing a script in PowerShell ISE and I am using Invoke-Sqlcmd. After the command is executed the Powershell session switches into sqlps session (PS SQLSERVER:>) and I can

3条回答
  •  情话喂你
    2021-02-12 10:42

    A simple cd 'directory of your choice' will put you back to the previous directory you were in.

    PS SQLSERVER:\> cd D:
    

    Result:

    PS D:\>
    

提交回复
热议问题