top of page
Topic
Recent Posts
Archive
Tags
SQL Server Profiler
Of course, deadlocks are not typically going to happen while you watch, so how can you know when and why they occur? You can use either...
Lock Events Category
While the current 70-762 Exam Ref "Developing SQL Databases" emphasizes that using Extended Events is an efficient way to tackle locking...
Application lock
Application locks open up the whole world of SQL Server locks for custom uses within applications. Instead of using data as a locked...
Locking behavior
There are various resources for learning SQL Lock behavior, including https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2...
WITH NOCHECK
If you create a table like this: CREATE TABLE Examples.BadData ( PositiveValue int NOT NULL ); INSERT INTO Examples.BadData(PositiveVa...
ABOUT "ROWLOCK"
ROWLOCK specifies that row locks are taken when page or table locks are ordinarily taken. When specified in transactions operating at the...
Enable row versioning for lock
You have a database named HR1 that includes a table named Employee. You have several read-only, historical reports that contain regularly...
Case study -- About deadlock
Background - You have a database named HR1 that includes a table named Employee. You have several read-only, historical reports that...
Acquiring locks
SQL Server can acquire a lock on any of the following resources to ensure that the user of that resource has a consistent view of the...
Isolation levels
The goal of isolation levels is to ensure that queries return complete and consistent results while other concurrent processes are...
bottom of page