FIX: Error 17066 occurs during the encryption operation when you use TDE in SQL Server 2012

Symptoms
Assume that you set a database to use transparent data encryption (TDE) in Microsoft SQL Server 2012. In a rare case, during the encryption operation, you receive the following error messages in the SQL Server error log:
Error: 17066, Severity: 16, State: 1.

SQL Server Assertion: File:< lckmgr.cpp>, line=9506 Failed Assertion = 'removedEntry != NULL'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.

* Non-yielding Scheduler

Process 19:0:1 (0x12b4) Worker 0x00000000054DA160 appears to be non-yielding on Scheduler 31. Thread creation time: 13076246206261. Approx Thread CPU Used: kernel 0 ms, user 51402 ms. Process Utilization 31%. System Idle 66%. Interval: 70448 ms.
When this error occurs, you have to restart SQL Server.
Resolution

Cumulative Update information

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: 3103293 - Last Review: 11/18/2015 20:47:00 - Revision: 1.0

Microsoft SQL Server 2012 Service Pack 2

  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB3103293
Feedback