PrepAway - Latest Free Exam Questions & Answers

How would you prevent queries that retrieve and read data from blocking queries that insert and update data?

You work as a SQL Server 2012 database developer at ABC.com. ABC.com has a large database

named SalesDB.
New rows are inserted into the tables in the SalesDB database and updates to existing rows occur
on a high frequency. The inserts and updates often blocked by queries retrieving and reading
data.
How would you prevent queries that retrieve and read data from blocking queries that insert and
update data?

PrepAway - Latest Free Exam Questions & Answers

A.
You should make use of the SERIALIZABLE ISOLATION LEVEL.

B.
You should make use of the SNAPSHOT ISOLATION LEVEL.

C.
You should make use of the REPEATABLE READ ISOLATION LEVEL.

D.
You should make use of the READCOMMITTED ISOLATION LEVEL.

E.
You should make use of the READPAST ISOLATION LEVEL

Explanation:

Ref: http://msdn.microsoft.com/en-us/library/ms173763.aspx

9 Comments on “How would you prevent queries that retrieve and read data from blocking queries that insert and update data?

  1. Shujie says:

    SNAPSHOT isolation level uses tempdb and the SNAPSHOT isolation level does not require shared locks on the underlying data so it will not block queries that insert and update data.




    0



    0
  2. DEREJE says:

    The highest isolation level, serializable, guarantees that a transaction will retrieve exactly the same data every time it repeats a read operation, but it does this by performing a level of locking that is likely to impact other users in multi-user systems. The lowest isolation level, read uncommitted, may retrieve data that has been modified but not committed by other transactions. All of the concurrency side effects can happen in read uncommitted, but there is no read locking or versioning, so overhead is minimized




    0



    0

Leave a Reply