April 6, 2020 at 12:39 pm
Good morning all
I can no longer use the powershell command "read-sqltabledata" and the command "write-sqltabledata"
the message says "The term" read-sqltabledata "is not recognized as a cmdlet name, function, script file, or executable program. Check
the spelling of the name, or if a path exists, verify that the path is correct and try again "
For the Powershell version I am with version 5
thanks for your help
April 6, 2020 at 2:58 pm
These commands are part of the sqlserver powershell module obtainable from:
https://www.powershellgallery.com/packages/Sqlserver/21.1.18221
April 6, 2020 at 3:43 pm
As Ken indicated, it's part of the SQLServer module. Execute Get-InstalledModule and see if the SQLServer module is installed. If not, install that module be executing Install-Module SQLServer.
Sue
April 6, 2020 at 4:44 pm
Are you using the SqlServer module? The older method was importing the sqlps module, which doesn't have these cmdlets.
April 6, 2020 at 6:34 pm
I can't install this module there
the result of the order
Get-Installed Module
Install-Module -Name SqlServer
thanks for your help
April 6, 2020 at 6:54 pm
Try adding the parameter that the error tells you to try:
Install-Module SQLServer -AllowClobber
Sue
April 7, 2020 at 1:02 pm
thank you very much
the module has been installed
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply