Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Cannot obtain LOCK resource at this time :sick: Expand / Collapse
Author
Message
Posted Wednesday, February 6, 2013 6:00 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 9:00 AM
Points: 117, Visits: 349
Hi All,

I got following Problem on my SQL Server :

The instance of the SQL Server Database Engine cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users. Ask the database administrator to check the lock and memory configuration for this instance, or to check for long-running transactions.

How can I solve it?

Greetz sql pizza


Greetz
SQL Pizza



sometimes you dont see the pizza for the toppings...
seek and ya shall find...
Post #1416452
Posted Wednesday, February 6, 2013 6:51 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 8:25 AM
Points: 43,016, Visits: 36,177
Have you got any of the lock escalation traceflags turned on? Are you using any locking hints?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1416485
Posted Wednesday, February 6, 2013 6:54 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 9:00 AM
Points: 117, Visits: 349
Have you got any of the lock escalation traceflags turned on?

Nope...

Are you using any locking hints?

Got snapshot isolation mode activated. The developers use NOLOCK AND ROWLOCK.


Greetz
SQL Pizza



sometimes you dont see the pizza for the toppings...
seek and ya shall find...
Post #1416487
Posted Wednesday, February 6, 2013 7:09 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 8:25 AM
Points: 43,016, Visits: 36,177
SQL Pizza (2/6/2013)
The developers use NOLOCK AND ROWLOCK.


There's a good chance that's a contributing factor (the rowlock usage)

Why snapshot isolation allowed and still using nolock hints? All the downsides of snapshot isolation, all the downsides of read uncommitted and none of the benefits of either.

Maybe worth having a 'chat' with the devs and get them to stop making a mess.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1416498
Posted Thursday, February 7, 2013 1:07 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Today @ 9:00 AM
Points: 117, Visits: 349
Thanks! This is what I allready suspected, but I was unsure if I'm right and if this would have a real effect...I'll post the results of the action .

Greetz
SQL Pizza



sometimes you dont see the pizza for the toppings...
seek and ya shall find...
Post #1416849
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse