Results 1 to 4 of 4

Thread: What are the different types of Lock available in SQL?

  1. #1
    Join Date
    Nov 2009
    Posts
    68

    What are the different types of Lock available in SQL?

    Hi Friends,

    I am learning SQL and it's near to complete. Even though the concept of "Lock" in SQL is not yet cleared for me. I am totally confused how to understand it.

    What are the different types of Lock available in SQL? What is the use them?

    Your help will be greatly appreciable..

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What are the different types of Lock available in SQL?

    Hi,

    Basically there are two main types of locks in SQL which is as below:

    I) Explicit locks:
    user provides this type of lock. There are also three kinds of this lock i.e Table level locks and Row level locks

    II) Implicit locks:
    This type of lock used by SQL system itself while operations like DML is running.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Re: What are the different types of Lock available in SQL?

    Hi All,

    According to my SQL knowledge,three types of Lock available in SQL:

    A. Exclusive lock:This type of lock is used during Update, Delete OR Insert operations.

    B. Shared lock: This type of lock is used when you don't want enable to modify OR change the data.

    C. Update lock: This type of lock is used during modification OR updation.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What are the different types of Lock available in SQL?

    Hi,

    When we want to modify the particular object we can use exclusive lock for this. When we want to reserves object for reading only,then we an use shared lock. From this we can avoid modification of the object. We can apply this lock on one or more objects.
    We can't apply this lock on the object when this object already has another lock.We can apply promotable locks on the object which already has shared lock.

    I hope this will solve your confusion regarding Lock in SQL...

Similar Threads

  1. Replies: 5
    Last Post: 31-01-2012, 10:06 PM
  2. Types of Folders lock option for Nokia N8 in computer
    By ZewrI in forum Portable Devices
    Replies: 5
    Last Post: 10-04-2011, 05:46 AM
  3. Issue with Dinovo Mini backslash, caps lock and num lock keys
    By Jarini in forum Hardware Peripherals
    Replies: 7
    Last Post: 02-11-2010, 02:27 AM
  4. Different types Types CCFL's
    By Zipp in forum Overclocking & Computer Modification
    Replies: 3
    Last Post: 29-10-2009, 09:11 AM
  5. Set warning sound for Caps lock,Num lock in Windows 7
    By rajmalhotra in forum Operating Systems
    Replies: 3
    Last Post: 13-05-2009, 02:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,577,511.37091 seconds with 17 queries