|
1 | 1 | --- |
2 | 2 | title: Error 3853 When Using Incremental Statistics And Resumable Index Operations |
3 | | -description: This article helps you resolve SQL Server error 3853 that occurs when you use incremental statistics and resumable index operations concurrently. |
| 3 | +description: Resolve SQL Server error 3853 that occurs when you use incremental statistics and resumable index operations concurrently. |
4 | 4 | ms.date: 03/19/2025 |
5 | 5 | ms.custom: sap:File, Filegroup, Database Operations or Corruption |
6 | 6 | ms.reviewer: rtownsend |
@@ -31,26 +31,26 @@ Msg 3853, Level 16, State 1, Line 10 |
31 | 31 |
|
32 | 32 | ## Cause |
33 | 33 |
|
34 | | -The 3853 error is caused by orphaned records under the `sys.syssingleobjrefs` system table. The `stats_id` in `sys.stats` is still `2`, while it's `896002` in `syssingleobjrefs`. The issue occurs under the following scenarios: |
| 34 | +The 3853 error is caused by orphaned records in the `sys.syssingleobjrefs` system table. The `stats_id` in `sys.stats` remains as `2`, while while the corresponding `stats_id` in `syssingleobjrefs` is `896002`, indicating a mismatch. The issue occurs under the following scenarios: |
35 | 35 |
|
36 | 36 | - The source `object_id` is a partitioned table or index. |
37 | | -- Incremental statistics are in use for table or index. |
38 | | -- Index create or rebuild is performed using the **RESUMABLE** option. |
39 | | -- Incremental statistics are updated or the index is rebuilt online. |
| 37 | +- Incremental statistics are in use for a table or index. |
| 38 | +- Index creation or rebuild is performed using the **RESUMABLE** option. |
| 39 | +- Incremental statistics are updated or the index is rebuilt using the `ONLINE = ON` option. |
40 | 40 |
|
41 | 41 | ## Status |
42 | 42 |
|
43 | | -Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the [Applies to](#applies-to) section. Microsoft has also confirmed that the issue is fixed in [Microsoft SQL Server 2022](https://www.microsoft.com/sql-server/sql-server-downloads). |
| 43 | +Microsoft has confirmed that this is a known issue in the versions of SQL Server listed in the [Applies to](#applies-to) section. Microsoft has also confirmed that the issue has been fixed in [Microsoft SQL Server 2022](https://www.microsoft.com/sql-server/sql-server-downloads). |
44 | 44 |
|
45 | 45 | ## Resolution |
46 | 46 |
|
47 | 47 | If the issue occurs, try the following options: |
48 | 48 |
|
49 | 49 | - Contact the Microsoft Customer Support team to request assistance with correcting the metadata. |
50 | 50 | - Restore the database from the most recent valid backup. |
51 | | -- Create a new database and import the data from the corrupted database using data import or export tools or manual export-import methods. |
| 51 | +- Create a new database and import the data from the corrupted database using SQL Server Import and Export Wizard, BCP utility, or manual export-import methods. |
52 | 52 | - Upgrade to SQL Server 2022 where the issue has been fixed. |
53 | 53 |
|
54 | 54 | ## Workaround |
55 | 55 |
|
56 | | -To avoid this issue, don't use incremental statistics and resumable index operations simultaneously. |
| 56 | +To avoid this issue, refrain from using incremental statistics and resumable index operations on the same table or index simultaneously. |
0 commit comments