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

Define self join in sql server joins?

698


Explain what are the different index configurations a table can have?

860


What is the maximum size of a row in sql server?

710


Explain trigger and trigger types?

734


How do I find the sql server version?

711






What is a recursive stored procedure in sql server?

772


Explain error handling in ssis?

752


How do you handle datasets larger than 50 gb?

154


Why do we use trigger?

710


What is a fill factor?

820


What is triggers in ms sql server?

802


What are the different types of backups avaialabe in sql server 2005?

774


What do you understand by triggers and mention the different types of it?

669


How do you create type- insensitive operator?

726


What is the purpose of linked server configuration in sql server?

723