Skip to main content

Explain Lock Types (Shared, Update, Exclusive, Intent).

Mid MS SQL
Quick Answer Shared (S): read lock, multiple transactions can hold simultaneously. Update (U): intent to update รขโ‚ฌโ€ prevents two transactions from upgrading to exclusive at the same time. Exclusive (X): write lock, blocks all other access. Intent locks (IS, IX, SIX): signal at a higher level (table) that lower-level locks exist.

Answer

Shared (S): For reading.

Exclusive (X): For writing.

Update (U): Prevents deadlocks during read-to-write transitions.

Intent Locks: Used to manage lock hierarchy efficiently.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice