1. 程式人生 > >SQL Server 更新統計資訊出現嚴重錯誤,應放棄任何可能產生的結果

SQL Server 更新統計資訊出現嚴重錯誤,應放棄任何可能產生的結果

This issue occurs because the database engine is trying to load dangling statistics. When P2P conflict detection is enabled, an MDColumnIdP2pCdId system column is added to the base index rowset of the table. Replication-related queries may create statistics on the system column automatically. When P2P conflict detection is disabled, the system column is removed from the table. However, the corresponding statistics remain. Therefore, updating statistics causes the access violation exception to occur because the statistics cannot be added to the table.