What is a NOLOCK?

Answer Posted / naren

Using NOLOCK politely asks SQL Server to ignore locks and
read directly from the tables. This means you completely
circumvent the lock system, which is a major performance
and scalability improvement. However, you also completely
circumvent the lock system, which means your code is living
dangerously. You might read the not-necessarily-valid
uncommitted modifications of a running transaction. This is
a calculated risk.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a functions and types in sql server?

590


What is the difference between ddl,dml and dcl commands?

606


Explain different types of self contained sub query?

535


What is a group function explain with an example?

516


What are the different types of sql server replication? : sql server replication

619






How to retrieve field values using mssql_result()?

623


How to read data in a table with "select" statements?

549


What is raid, and how it can influence database performance?

568


Can group by and orderby be used together?

591


What are sub reports and how to create them?

99


What is join and name different type of joins?

569


Explain about merge replications?

590


What is view in sql?

555


Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?

570


Define left outer join in sql server joins?

547