我在运行查询或存储过程时遇到问题。每次运行查询时,我都会收到以下错误:
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/