https://github.com/PowerShell/PowerShell/releases/tag/v7.2.2SQL Server Management Studio 18 啟動觸發(fā)器報錯
標(biāo)題: 找不到“SqlServer”模塊 --------------- 在此計(jì)算機(jī)上找不到任何 SQL Server cmdlet。
在 https://powershellgallery.com/packages/SqlServer 上獲取“SqlServer”模塊
不使用 SQL Server cmdlet 啟動 PowerShell?
有關(guān)幫助信息,
請單擊: https://go.microsoft.com/fwlink/?linkid=842573
------------------------------ 按鈕: 是(&Y) 否(&N) 打開 PowerShell 庫(&G) ------------------------------
1、解決方法:下載最新版本 PowerShell
Release v7.2.2 Release of PowerShell · PowerShell/PowerShell · GitHubPowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.https://github.com/PowerShell/PowerShell/releases/tag/v7.2.2
在 Windows 上安裝 PowerShell - PowerShell | Microsoft Docs如何安裝參照
在 Windows 上安裝 PowerShell - PowerShell | Microsoft Docs介紹如何在 Windows 上安裝 PowerShellhttps://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2
在 Windows 上安裝 PowerShell - PowerShell | Microsoft Docs
2.解壓 管理員運(yùn)行pwsh.exe
3.輸入安裝 命令
Install-Module -Name SqlServer -RequiredVersion 21.1.18256
成功之后會在文檔目錄下生成該文件
'C:\Users\Administrator\Documents\PowerShell\Modules\SqlServer\21.1.18256
?4.將文件拷貝到sql目錄下
C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules
5.啟動數(shù)據(jù)庫觸發(fā)器?PowerShell
?
?6.輸入代碼運(yùn)行
?
Install-Module -Name SqlServer -AllowPrerelease
選擇【A】
?文章來源:http://www.zghlxwxcb.cn/news/detail-491588.html
?成功安裝文章來源地址http://www.zghlxwxcb.cn/news/detail-491588.html
到了這里,關(guān)于找不到“SqlServer”模塊-- 在此計(jì)算機(jī)上找不到任何 SQL Server cmdlet。的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!