Consider the following scenario:
- You perform at least one insert, update, or delete against a table that has change tracking enabled.
- You disable all change tracking within the database.
In this scenario, even after you have disabled change tracking, when you try to set the database to the partially contained database model, you may receive an error message that resembles the following:
Msg 1205, Level 13, State 18, Procedure sp_flush_commit_table, Line 54
Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
Msg 3999, Level 17, State 1, Line 44
Failed to flush the commit table to disk in dbid 13 due to error 1205. Check the errorlog for more information.
The issue is fixed in the following cumulative updates for SQL Server:
Article ID: 3212318 - Last Review: 20 Mar 2017 - Revision: 26