Win Surprise Gifts!!!
Post New Question
Subscribe to Interview Questions
What is NOLock
Posted By :
Posted Date :
July 31, 2011
Use of NOLOCK is generally a good practice on a busy system. Using nolock can return dirty data as there may be some commands that were updating the data exactly when the data is being readed.
You can also find related Interview Question to
What is NOLock
Why NoLock is used in Sql Select Query?
applying nolock in select statement will increase
concurreny and performance in fetching.
it does'nt consider the transaction scenario, even if the
transaction is under process not yet commited or rollback
it will fetch the current record
insert into tablename
select * from tablename with (nolock)
-- it will display the table with inserted record.
but the transaction is not completed, it can be rollback
so it became dirty read.
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend