Welcome to news.clarionlife.net

1 April 2008

Diagnose SQL Server performance issues using sp_lock

A common misconception among IT pros is that “locks are bad,” and you must do everything possible to ensure database locking doesn’t prevent processes from running. In order to ensure a consistent database environment, the database engine must use a mechanism to acquire exclusive use of a resource when that resource is being modified.

SQL Server uses locks to achieve this consistency. Locks are objects that the database engine uses to ensure that only one thread can access a resource at a time. Without the use of locks, concurrent data modifications would be possible by separate processes, which could potentially leave the database in an inconsistent state. Locks are a good thing, but you should plan your applications in such a way to minimize the number of database locks involved.

Here are details about a stored procedure that enables you to diagnose your database locking issues.

Read more

PS
I’m using MSSQL Blocks .

Tags:

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Category: SQL — Andrew Popoff @ 10:20 pm  |

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a

The news.clarionlife.net template by mixer, based on default - Built for Wordpress 2.2.1
37 queries. 0.186 seconds.