Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to handling concurrency issues

$
0
0

Hi,

What is the best approach to update three tables at a time to avoid concurrency problem. The most important thing here is the data integrity. The application scenario lead clearly to the possibility of updating those tables by two or more sessions at the same time. Reading also from those tables back during the update is passable.

Please how can I write the T-SQL statement to perform the update and which isolation level should I use.

Program Table

ProgramId PK

ProgramName

ApprovedBudgetAmount

ConsumedBudgetAmount

Project Table

ProjectId PK

ProgramId FK

ProjectBudgetAmount

ConsumedBudgetAmount

Claim Table

ClaimId PK

ProjectId FK

ClaimAmount


Samijf


Viewing all articles
Browse latest Browse all 23857

Trending Articles