PowerShell Invoke-Sqlcmd switches into sqlps session

前端 未结 3 1436
梦如初夏
梦如初夏 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:29

    There was a similar question over at SuperUser today: https://superuser.com/questions/767427/stuck-in-powershell-sqlserver

    You should be able to just go back to C:

提交回复
热议问题