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
 General SQL Server Forums
 New to SQL Server Programming
 nolock problem

Author  Topic 

kiruthika
Yak Posting Veteran

67 Posts

Posted - 2007-12-28 : 05:00:18
Hi!

select * from rubberstock_tbl_shoppingcarttemp
It dosent take datas from the table but

select * from rubberstock_tbl_shoppingcarttemp (nolock)
This querey takes the data from the table

what can i do to retrieve records through first query.I dont know what
is happening please explain and also dont know about nolock

Thanks in advance!


spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-12-28 : 05:45:52
have you read about nolock hint in books on line?
what don't you understand exactly?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2007-12-28 : 10:35:00
Once you have read all about how (nolock) allows you to read "uncommitted" transactions , you will no doubt realize that you either have a logic problem in your processing or that have left a transaction out there in limbo (not committed or not rolled back)

Be One with the Optimizer
TG
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-28 : 22:41:09
>> what can i do to retrieve records through first query

Set isolation level to read uncommitted for the session.
Go to Top of Page
   

- Advertisement -