in reply to Database Update or Insert

Normally, I wouldn't recommend this. It will work when the only cause of a failed update is that the data doesn't exist.

What if the row (page, table) is locked? Do you still want to insert, or update?