how to implement locking in sql server

Answers were Sorted based on User's Feedback



how to implement locking in sql server..

Answer / suraj

like this

select *
from dbo.Address
with (nolock)

-- above query doesn't hold lock while retrieving data.

Is This Answer Correct ?    3 Yes 1 No

how to implement locking in sql server..

Answer / midhun

By using lock hints and Isolation level

Is This Answer Correct ?    0 Yes 0 No

how to implement locking in sql server..

Answer / rama krishna

no need to impliment locks sql server automatically holds
locks

Is This Answer Correct ?    5 Yes 8 No

Post New Answer

More SQL Server Interview Questions

What are the steps to take to improve performance of a poor performing query? : sql server database administration

0 Answers  


What does select 1 mean?

0 Answers  


What are the different types of replication you can set up in sql server?

0 Answers  


What is sub query and its properties?

0 Answers  


What is the difference between a function and a stored procedure?

0 Answers  






What is the main difference between ‘between’ and ‘in’ condition operators?

0 Answers  


How many databases Microsoft SQL server provides?

0 Answers   Abacus,


What is SQL Profiler and the use of it?

2 Answers   247Customer,


Explain the usage of floor function in sql server.

0 Answers  


What is a function? Give some example?

3 Answers  


how to select 5 to 7 rows from a table, which contains 10 rows?

21 Answers   IBM,


What is a trigger and types of a trigger?

0 Answers  


Categories