Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Lock

Author  Topic 

inbs
Aged Yak Warrior

860 Posts

Posted - 2009-02-14 : 14:06:21
i have 2 statments:

UPDATE TABLE1
UPDATE TABLE1

Suppose that first UPDATE take 5 minutes.
so the TABLE1 be lock 5 minutes?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-02-14 : 19:12:46
Well the whole table probably won't be locked, just depends on how many rows are in the table and how many rows you are updating. SQL Server starts locking at the row level and escalates as needed/wanted.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -