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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

synchronized write

Status
Not open for further replies.

ankursaxena

Programmer
Sep 7, 2001
133
US
Hi! i have a program which writes to the database, now if i run 2 copies of the same thing, would the writting be atomic. i mean it will lock the database before it write so that someone else cant write/read? so i dont need to worry about snychronizing it myself rite?
help would be greatly appreciated.
thanx a lot in advance
 
If it just one operation its safe.

But if you need to do two or more operations you can use the sql statement lock table.

In other database systemes you would set autocommit false and do commit/rollback.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top