Error starting PowerShell in Windows Server 2008 R2. How to solve?

2

I have installed SQL Server 2014. When I start PowerShell on Windows Server 2008 R2 and do the "sqlps" command to test, this error occurs which shows in the image below ...

On another computer, with windows 7 and the same version of SQL Server 2014, it works normally.

How to solve?

Texterror:

"Import-Module: Can not Load Windows PowerShell 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 can not find the specified file. 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 can not find the specified file. 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 can not find the specified file. 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 can not find the specified file. At line: 1 char: 14 + import-module

asked by anonymous 20.08.2015 / 21:25

1 answer

1

You need to install Microsoft® SQL Server® 2008 R2 Shared Management Objects > before using Microsoft.SqlServer.BatchParser .

This is the item you should download and install according to the version of your operating environment:

    
23.09.2015 / 21:04