写入SqlTableData在powershell中出现错误

写入SqlTableData在powershell中出现错误,powershell,Powershell,我经常在我的计算机上使用Write SqlTableData,但由于某些原因,我无法使其在其他电脑上工作。我以前曾尝试过这样做:安装模块SqlServer并导入模块SQLPs,但仍然出现以下错误: Write-SqlTableData : The term 'Write-SqlTableData' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the sp

我经常在我的计算机上使用Write SqlTableData,但由于某些原因,我无法使其在其他电脑上工作。我以前曾尝试过这样做:安装模块SqlServer并导入模块SQLPs,但仍然出现以下错误:

Write-SqlTableData : The term 'Write-SqlTableData' is not recognized as the name of a cmdlet, function, script file, 
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and 
try again.

这里有什么地方出了问题吗?

我已经从powershell 4升级到了5,并安装了(安装模块sqlserver),然后它就工作了


您还可以在此处检查解决方案:

安装sql时会安装PowerShell模块。它们是可选的,并且对于不同版本的sql是不同的。您使用的是相同的sql版本吗?在“另一台电脑”上,“C:\Program Files(x86)\Microsoft SQL Server\\Tools”中是否有PowerShell文件夹?