Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using following update command to update table that has locked by another transaction

SQL
UPDATE tableName with (readpast)


But this works on sql server2008 and not working on the sql server2000. Is there any other key word to use when updating a locked table in sql server2000.
Posted
Updated 30-May-12 8:02am
v2

1 solution

In MS SQL Server 2000 READPAST, NOLOCK, and READUNCOMMITTED are not allowed.

More at: UPDATE (SQL Server 2000)[^]

Try to mull over possible approaches to the task with Granting permissions[^] or Using Ownership chains[^].
PERMISSIONS[^]
GRANT[^]
 
Share this answer
 
Comments
Sandeep Mewara 31-May-12 1:40am    
Good answer. 5!
Maciej Los 31-May-12 1:50am    
Thank you, Sandeep ;)
VJ Reddy 31-May-12 2:59am    
Good answer. 5!
Maciej Los 31-May-12 3:13am    
Thank you, VJ ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900