Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am very new programmer trying to learn c# and sql server. I am doing a masters thesis on concurrency control in distributed database. I want help on how to control concurrency control in distributed database using c# and sql server. If possible a source code will be gladly welcome

What I have tried:

i am new to c# programming and so i have not tried anything yet since i don't know to even start
Posted
Updated 13-Jan-19 17:37pm

1 solution

The question is very large and you haven't mentioned which aspects you're going to cover. But in general protocols such as two-phase commit can be used to ensure that operations are committed or rolled back as an atomic unit in distributed environments.

One thing is that in an distributed transaction there is a single controller which coordinates the operations and commit phases.

Concurrency in querying is often allowed but fir example in case of federated database it may be necessary to lock the records being read.

Typically concurrency is controlled by the databases and the controller/coordinator and the application itself does not directly take part into controlling concurrency between databases in distributed environment so I'm not sure what would be required for the C# program to do....
 
Share this answer
 
Comments
MaximusDebois 14-Jan-19 19:03pm    
I want to use both two phase locking and timestamping to control concurrency. Any help on how to implement it in sql server
Wendelius 14-Jan-19 22:52pm    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900