Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft.SqlServer.BatchParser Issue

I created SSIS package:

  • this package is running powershell file
  • this powershell file is running SQL file

I tried to run this SSIS package with two ways :

  1. Use .bat file which executes the SSIS package >> This way is running successfully.
  2. Use powershell file which executes the SSIS package >> This way is failing with the following Error

Error Message:

Could not load file or assembly 'Microsoft.SqlServer.BatchParser, Version=15.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

Could I get help regarding this issue ??

I tried re-install SSMS-Setup-ENU but still have the same issue.

like image 986
ahmed moharram Avatar asked Feb 03 '26 20:02

ahmed moharram


1 Answers

This issue fixed by using Import-Module Sqlps -DisableNameChecking; before executing sql script from ps file

like image 60
ahmed moharram Avatar answered Feb 05 '26 08:02

ahmed moharram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!