SQL Server错误 "Could not continue scan with NOLOCK due to data movement."

标签 sql sql-server

我在运行查询或存储过程时遇到问题。每次运行查询时,我都会收到以下错误:

Could not continue scan with NOLOCK due to data movement.

如果我删除 WITH NOLOCK 命令,则会收到不同的错误:

Msg 824, Level 24, State 2, Line 1

SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:19818941; actual 1:19818957). It occurred during a read of page (1:19818941) in database ID 9 at offset 0x000025cd37a000 in file 'E:\SQLDATA\MSCRM.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

我应该如何解决此错误?

最佳答案

首先,显然,请尝试DBCC CHECKDB

如果这无法解决问题,您可能需要从备份还原,然后手动复制最新的更改。希望您一直在进行夜间备份...?

关于SQL Server错误 "Could not continue scan with NOLOCK due to data movement.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16879720/

相关文章:

html - 检测 MySQL 中的换行符?

mysql - 连接并显示另一个表引用的一个表中的 2 列

sql - 使用聚合函数更新 json 数组

sql - 根据周数和日数字段设置 SQL 日期字段值

sql - 根据组顺序选择新列

c# - 将 Dapper.TVP TableValueParameter 与其他参数结合使用

java - 如何在 mysql 中选择几个相同的数据之一并在 jComboBox java 中查看?

sql - linux 中具有多个子行的文本文件中的精确行

.net - 当接收者仍然需要更新他们的读取存储时,CQRS 如何帮助减少锁争用?

sql-server - SSIS 2012 找不到方法 : void