Solved

SQL Transaction locking whloe table

Posted on 2004-09-19
3
254 Views
Last Modified: 2010-04-17
if SqlTransaction applied while updating table its locks whole table so it not let other select command to fetch data from table as long Transaction is not finished
0
Comment
Question by:meharmahmood
3 Comments
 

Accepted Solution

by:
GRV_Consulting earned 125 total points
ID: 12098699
That is correct. Some database systems use table locking on transactions to prevent other processes from altering the same data. You haven't mentioned what database system you are working with ... is it MS-SQL Server .. Oracle ..  MySQL?

Also keep in mind that the locking method a particular database uses is sometimes configurable by the administrator. MySQL for example can use MyISAM tables which lock the table on DELETE transactions, or it can use InnoDB which has row level locking.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question