Tenho instalado o SQL Server 2014. Ao iniciar o PowerShell no Windows Server 2008 R2 e faço o comando "sqlps" para testar, acontece esse erro que mostra na imagem abaixo...
OBS: Em um outro computador, com windows 7 e mesma versão SQL Server 2014, funciona normalmente.
Como resolver?
Erro em texto:
"Import-Module : Cannot load Windows PowerShell snap-in C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell \Modules\SQLPS\Microsoft.SqlServer.Management.PSSnapins.dll because of the following error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Loader Exceptions: Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=12.0.0.0, Culture=neutral, PublicKeyToken=898 45dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=12.0.0.0, Culture=neutral, PublicKeyToken=898 45dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=12.0.0.0, Culture=neutral, PublicKeyToken=898 45dcd8080cc91' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=12.0.0.0, Culture=neutral, PublicKeyToken=898 45dcd8080cc91' or one of its dependencies. The system cannot find the file specified. At line:1 char:14 + import-module <<<< SQLPS -DisableNameChecking + CategoryInfo : ResourceUnavailable: (:) [Import-Module], PSSnapInException + FullyQualifiedErrorId : PSSnapInLoadFailure,Microsoft.PowerShell.Commands.ImportModuleCommand"