How can i solve concurrency if multiple users update the same record at the same time.
I want to use only stored Procedure.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted May 7, 2013, 4:37 AM EDT
hi,
you can use highest isolation level to avoid such situation (maintaining a shared lock with in transaction).
Also you can use Timestamps column to maintain concurrency. Timestamp is generally used as a mechanism for version-stamping table rows. The timestamp data type is just an incrementing number and does not preserve a date or a time.
Before save data you can check timestamp whether is same as while it fetch from database or not.
hope this will help you.
Gurjeet Singh107 reputationPosted May 7, 2013, 5:00 AM EDT
Jayraj Goswami182 reputationPosted May 7, 2013, 10:01 PM EDT
([Name]
,[Password])
VALUES
(
,
GO