I have a desktop application that runs on a network and every instance connects to the same database.
So, in this situation, how can I implement a mutex that works a
put the code inside a transaction either - in the app, or better -inside a stored procedure, and call the stored procedure. the transaction mechanism will isolate the code between the callers.