Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Select with NOLOCK is trying to get a shared lock

$
0
0
I have a select-query using the WITH(NOLOCK) hint to ignore locks. The problem is that when the query is executed it get timed out because it's waiting for a shared page lock on the table in the select. I thought NOLOCK should prevent trying to get shared locks.Are there any cases where the NOLOCK is not having effect or some setting in SQL Server that affect this?

Viewing all articles
Browse latest Browse all 3145

Trending Articles