1.

Which of the following occurs when two connections need access to same piece of data concurrently and the meanwhile another is blocked because at a particular time, only one connection can have access?(a) Lock(b) Block(c) Deadlock(d) Exclusive lockI got this question in a job interview.Query is from Blocking in chapter Performance Tuning and Optimization of SQL Server

Answer»

The CORRECT CHOICE is (B) Block

Best explanation: Lock is done by database when any CONNECTION access the same piece of data CONCURRENTLY and another is demanding for it.



Discussion

No Comment Found

Related InterviewSolutions