2017-05-31 78 views
0

我經常在我的計算機上使用Write-SqlTableData,但由於某些原因,我無法使其在不同的PC上工作。我曾嘗試過這樣做:安裝,模塊的SqlServer和導入模塊SQLPS,但我仍然得到以下錯誤:Write-SqlTableData在PowerShell中發生錯誤

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. 

有什麼做錯了嗎?

+0

安裝SQL當模塊安裝PowerShell的。它們是可選的,對於不同版本的sql是不同的。你使用的是同一個sql版本嗎?在「不同的電腦」上,是否存在C:\ Program Files(x86)\ Microsoft SQL Server \ \ Tools \'中的PowerShell文件夾? – gms0ulman

回答