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 different ways you can create databases in sql server?

0 Answers  


What does <> symbol mean?

0 Answers  


write query for fourth maximum salary from employee table

14 Answers   Mind Tree, SP Software,


How to Get the last identity value used

4 Answers  


Is trigger fired implicitely?

2 Answers  






Is it possible to replicate data from sql server to oracle? : sql server replication

0 Answers  


What is the difference between executequery () and executeupdate ()?

0 Answers  


What is autocommit mode in sql server?

0 Answers  


Can you explain different types of locks in sql server?

0 Answers  


How to test subquery results with the exists operator?

0 Answers  


Describe triggers features and limitations?

0 Answers  


Give main differences between "Truncate" and "Delete".

0 Answers   HCL,


Categories