我有点像个新手。
因此,我创建了一个使用Restore-SqlDatabase
Commandlet 的脚本。但是,在我运行它之后,它使Powershell处于不同的状态。
PS D:\theFolder\> .\myRestoreDatabaseScript.ps1
... snip does the work ...
PS SQLSERVER:\>
如何使Powershell返回“正常”界面?
另外,PS SQLSERVER
前缀叫什么?我为此尝试了Google,结果空白了。
push-location
在导入之前sqlps
和导入pop-location
之后使用,您就可以使用了。