FIX: SHARING VIOLATION error 6518 occurs on CLR assembly microsoft.sqlserver.types.dll in SQL Server 2012 or SQL Server 2014

Symptoms
When you run queries in Microsoft SQL Server 2012 or SQL Server 2014, the queries may intermittently fail with a SHARING VIOLATION error on the CLR assembly Microsoft.SqlServer.Types.dll. Additionally, the following error message is logged in SQL Server Error log:
Error 6518, Severity 16, State 2
Could not open system assembly ''C:\Windows\assembly\GAC_MSIL\microsoft.sqlserver.types\11.0.0.0__89845dcd8080cc91\microsoft.sqlserver.types.dll'': 32(The process cannot access the file because it is being used by another process.).
Resolution
The issue was first fixed in the following cumulative update of SQL Server: Recommendation: Install the latest cumulative update for SQL Server
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. We recommend that you download and install the latest cumulative updates for SQL Server:
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 3064292 - Last Review: 08/17/2015 19:11:00 - Revision: 3.0

Microsoft SQL Server 2012 Service Pack 2, Microsoft SQL Server 2014 Service Pack 1

  • kbfix kbqfe kbsurveynew kbexpertiseadvanced KB3064292
Feedback