title: SQL Server error "Could not continue scan with NOLOCK due to data movement."
body: <p>I am having an issue when running queries or stored procedures. Every time I run a query I get the following error:</p>
  
  <blockquote>
    <p>Could not continue scan with NOLOCK due to data movement.</p>
  </blockquote>
  
  <p>If I remove the <code>WITH NOLOCK</code> command, I get a different error:</p>
  
  <blockquote>
    <p>Msg 824, Level 24, State 2, Line 1</p>
    
    <p>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.</p>
  </blockquote>
  
  <p>What should I do to resolve this error?</p>