adspace


What are “lock” hints?

Answer Posted / Ravi Rao Gautam

Lock hints in SQL Server are clauses used to control how data is locked during query execution. By specifying a lock hint, you can instruct the database engine to use different isolation levels or lock modes, affecting concurrency and performance. Common lock hints include READUNCOMMITTED, READCOMMITTED, REPEATABLE_READ, SERIALIZABLE, UPDLOCK, HOLDLOCK, and TABLOCK.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to have clustered index on separate drive from original table location?

1047


What kind of problems occurs if we do not implement proper locking strategy?

1508


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1031


How to remove duplicate rows from table except one?

1096


Why use identity in sql server?

1209


What are wait types?

1260


What is subquery? Explain the properties of a subquery?

1070


Does view occupy space?

1031


what is spatial nonclustered index

1066


What is a scheduled job or what is a scheduled task?

1043


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1303


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1221


What are the different SQL Server Versions you have worked on?

1084


How raid can influence database performance?

1127


How to enter binary string literals in ms sql server?

1255