Locking table when deletion is make

Locking table when deletion is make

Post by Yee » Tue, 02 Apr 2002 11:06:34



Hi,
I have a problem locking a table when the deletion is
doing on that particular table.
I am using SQL command to do the deletion by using clause
DELETE....WHERE....
This is a multi-tasking enovironment where the record
updating is doing into a SQL table(the server is nonstop
running to get the life data). Meantime, there is another  
process for the table housekeeping when the time the
traffic is not so busy to do the updating into that server.
I found that the table is lock when the deletion process
is running, cause the record cannot be successful updated
into the table.
Is there anyone can help me to solve this problem.

Thanks.

 
 
 

Locking table when deletion is make

Post by Bob Pfeiff [MS » Tue, 02 Apr 2002 23:33:34


How many rows does the DELETE affect?  A table lock might be acquired if the
DELETE affects a large percentage of rows in the table or if the DELETE has
to to a table scan .  It might help to create an index on the column in the
DELETE statement's WHERE clause if you don't have one.

Look at the execution plan of the DELETE statement in Query Analyzer to get
a better idea of what is happening.

--
Bob
Microsoft Consulting Services
------
This posting is provided AS IS with no warranties, and confers no rights.

 
 
 

Locking table when deletion is make

Post by yan wang [M » Fri, 05 Apr 2002 11:35:53


Hi,
If blocking always occurred , you may check your client AP and see if any
way to optimize it.

Regards,
Yan
***This posting is provided 'AS IS' with no warranties, and confers no
rights.*****

 
 
 

1. Locking table when deletion is doing

Hi,
I have a problem locking a table when the deletion is
doing on that particular table.
I am using SQL command to do the deletion by using clause
DELETE....WHERE....
This is a multi-tasking enovironment where the record
updating is doing into a SQL table(the server is nonstop
running to get the life data). Meantime, there is another  
process for the table housekeeping when the time the
traffic is not so busy to do the updating into that server.
I found that the table is lock when the deletion process
is running, cause the record cannot be successful updated
into the table.
Is there anyone can help me to solve this problem.

Thanks.

2. catch a temp table

3. Locking table when deletion is make

4. US-CA-ORACLE 9I APPLICATIONS SERVER

5. Enterprize Manager locks up when i am trying to make changes to a table

6. MSFlexGrid and ADO

7. table(s) locked during making of snapshot ?

8. SQL Simple Question

9. Deleting rows makes table lock and so on....!!!!

10. I am making aplications in clarion for windows.

11. email me ny vbs scripts i am making a huge prog with any features u send

12. Table is locked, workstation coughs, table stays locked.

13. i am facing a problem with row level locking