You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Error 3853 When Using Incremental Statistics And Resumable Index Operations
3
-
description: Resolve SQL Server error 3853 that occurs when you use incremental statistics and resumable index operations concurrently.
4
-
ms.date: 03/19/2025
2
+
title: Error 3853 When Using Incremental Statistics and Resumable Index Operations
3
+
description: Resolves SQL Server error 3853 that occurs when you use incremental statistics and resumable index operations concurrently.
4
+
ms.date: 03/26/2025
5
5
ms.custom: sap:File, Filegroup, Database Operations or Corruption
6
6
ms.reviewer: rtownsend
7
7
---
8
8
9
9
# SQL Server error 3853 when using incremental statistics and resumable index operations concurrently
10
10
11
-
## Applies to
12
-
13
-
- Microsoft SQL Server 2019
14
-
- Microsoft SQL Server 2017
15
-
- Microsoft SQL Server 2016
11
+
_Applies to:_ SQL Server 2019, SQL Server 2017, SQL Server 2016
16
12
17
13
## Symptoms
18
14
19
15
When you run a [DBCC CHECKDB](/sql/t-sql/database-console-commands/dbcc-checkdb-transact-sql) command, the following output might be generated:
20
16
21
17
```output
22
-
Corruption in database ID %I64d, object ID %ld possibly due to schema or catalog inconsistency. Run DBCC CHECKCATALOG.
18
+
Corruption in database ID %I64d, object ID %Id possibly due to schema or catalog inconsistency. Run DBCC CHECKCATALOG.
23
19
```
24
20
25
21
You might also see the following error message in the SQL Server error log:
@@ -31,26 +27,26 @@ Msg 3853, Level 16, State 1, Line 10
31
27
32
28
## Cause
33
29
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:
30
+
The 3853 error is caused by orphaned records in the `sys.syssingleobjrefs` system table. The `stats_id` in `sys.stats` remains as `2`, while the corresponding `stats_id` in `syssingleobjrefs` is `896002`, indicating a mismatch. The issue occurs under the following scenarios:
35
31
36
32
- The source `object_id` is a partitioned table or index.
37
33
- 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.
34
+
- Index creation or rebuild is performed using the `RESUMABLE` option.
35
+
- Incremental statistics are updated, or the index is rebuilt using the `ONLINE = ON` option.
40
36
41
37
## Status
42
38
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).
39
+
Microsoft has confirmed that this is a known issue in the versions of SQL Server listed in the "Applies to" section at the top of the article. 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
40
45
41
## Resolution
46
42
47
43
If the issue occurs, try the following options:
48
44
49
45
- Contact the Microsoft Customer Support team to request assistance with correcting the metadata.
50
46
- Restore the database from the most recent valid backup.
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
-
- Upgrade to SQL Server 2022 where the issue has been fixed.
47
+
- Create a new database and import the data from the corrupted database using the SQL Server Import and Export Wizard, Bulk Copy Program (BCP) utility, or manual export-import method.
48
+
- Upgrade to SQL Server 2022, where the issue has been fixed.
53
49
54
50
## Workaround
55
51
56
-
To avoid this issue, refrain from using incremental statistics and resumable index operations on the same table or index simultaneously.
52
+
To avoid this issue, don't use incremental statistics and resumable index operations on the same table or index simultaneously.
0 commit comments