Which type of lock will be acquired if lock escalation occurs?

You manage a database, Prod, on an instance of SQL Server 2008. You have a partitioned table, TransDetails, which was defined using the following Transact-SQL:
CREATE PARTITION FUNCTION PFunction1 (int)AS RANGE LEFT FOR VALUES (2000, 3000);
CREATE PARTITION SCHEME PScheme1 AS PARTITION PFunction1 TO (fg1, fg2, fg3);
CREATE TABLE TransDetails
(
TransID int,
Description varchar(50),
Region varchar(20),
Date datetime,
TypeID int,
EmpID int,
Status bit
)ON PScheme1(TypeID);
You open a session and execute the following Transact-SQL:
ALTER TABLE TransDetails
SET (LOCK_ESCALATION = TABLE);
GO
BEGIN TRANSACTION
UPDATE TransDetails
SET TypeID = TypeID + 1000
WHERE TypeID > 4000;
GO
Which type of lock will be acquired if lock escalation occurs?
A. an Exclusive (X) lock on the TransDetails table
B. an Update (U) lock on the TransDetails table
C. a partition-level lock on one of the TransDetails table’s partitions
D. an Intent Exclusive (IX) lock on the TransDetails table

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.