Consider the following scenario:
- You run a 32-bit version of Microsoft SQL Server 2008 on an Itanium-based version of Windows.
- Windows PowerShell is started. Windows PowerShell may be started by SQL Server Agent or by using SQL Server Management Studio.
- You run the following command: cd SQLSERVER:\SQL\SQLPOD030-17\DEFAULT
invoke-sqlcmd -query "select @@version"
Invoke-Sqlcmd : Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
At line:1 char:14
+ invoke-sqlcmd <<<< -query "select @@version"
At line:1 char:14
+ invoke-sqlcmd <<<< -query "select @@version"