Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 scan with NOLOCK due to data movement

Author  Topic 

ranganath
Posting Yak Master

209 Posts

Posted - 2010-05-06 : 10:38:28
Hi

i have one big Sp. there are lot of updations. so frequently iam getting this Error 'Could not continue scan with NOLOCK due to data movement' so i need solution for that.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2010-05-06 : 10:52:30
why did you have NOLOCK in the first place?


___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.7 out!
Go to Top of Page

ranganath
Posting Yak Master

209 Posts

Posted - 2010-05-06 : 11:04:16
i used with Nolock for every Table
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2010-05-06 : 11:07:27
why?

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.7 out!
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-05-06 : 13:10:37
Solution - don't use Nolock.
[url]http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx[/url]

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -