Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lock table

Status
Not open for further replies.

rotelmak

Programmer
Nov 29, 2004
31
0
0
MK
I have stored procedure wich select(sum) data from table1 and
insert modifyed data in table2. It is important to prevent other users of the aplication to change data(insert,update,delete) into table1, while query is in progres. How can I lock records in table1 (sql server 2000)?

Thank you
 
You also may be able to use the SET TRANSACTION ISOLATION LEVEL command with the SERIALIZABLE option. Check out BOL (Books online) for moer information about isolation levels.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top