SQL SERVER – Error: Could not Load File or Assembly Microsoft. SqlServer. management. sdk. sfc Version 12.0.0.0

SQL SERVER - Error: Could not Load File or Assembly Microsoft. SqlServer. management. sdk. sfc Version 12.0.0.0 web My virtual machines are my playground and I do install/uninstall a lot of stuff there (of course related to SQL Server learning). When things break, I get to learn something new. In this blog we would talk about how to troubleshoot and fix Could not load file or assembly error. This particular error can come in many flavors. Here is another form of the same error.

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

WORKAROUND/SOLUTION

You need to notice few things in the error message. I have shown the values as per the error message

  1. Assembly Name: Microsoft.SqlServer.BatchParser
  2. Version: 11.0.0.0
  3. Error Message: The system cannot find the file specified

If you check C:\WINDOWS\ASSEMBLY folder, you would see them like below.

Here is the version table:

SQL Server VersionAssembly Version Number
SQL Server 20059.0.0.0
SQL Server 200810.0.0.0
SQL Server 2008 R210.0.0.0
SQL Server 201211.0.0.0
SQL Server 201412.0.0.0
SQL Server 201613.0.0.0
SQL Server 201714.0.0.0

Now, read the error message again and it would start making sense. We can see that 11.0.0.0 is missing from assembly folder. All we need is to install the right version of SMO (Shared Management Objects) and SQLCLR from feature pack. You can refer below article to know more about feature pack. Since 11.0.0.0 is missing, we need SQL 2012 version of the feature pack.

SQL SERVER – How to Download SQL Server Native Client?

In the article, I talked about Native Client but for current error, we need to download these files:

  • ENU\x64\SQLSysClrTypes.msi for the X64 version
  • ENU\x86\SQLSysClrTypes.msi for the X86 version
  • ENU\x64\SharedManagementObjects.msi for the X64 version
  • ENU\x86\SharedManagementObjects.msi for the X86 version

Hopefully, this blog would help some developer who has no idea about SQL Server versions jargon.

Reference: Pinal Dave (https://blog.sqlauthority.com) 

SQL Error Messages, SQL Server, SQL Server Management Studio, SSMS
Previous Post
SQL SERVER – Fix Error: Invalid object name STRING_SPLIT
Next Post
SQL SERVER – DPM Backup Failure – E_COORD_LOG_CHAIN_BROKEN – The Backup Failed Because of a Gap in The LSN the Log Files

Related Posts

1 Comment. Leave new

  • Yagappan Mariasusai
    March 26, 2020 5:33 pm

    Have you got the solution for the below?

    microsoft.sqlserver.management.sdk.sfc, version=12.0.0.0, culture=neutral ‘publickeytoken=89845dcd8080cc91’ or one of its dependencies. The system cannot find the file specified.

    Reply

Leave a Reply