How can i guarantee mutual exclusion in a vb.net script?

We have a DB table with telephone numbers here. A process/script assigns people via an FK. My suspicion now is that processes are taking phone numbers from each other and assigning them to other people in quick succession. How can this be ruled out within a vb.net Designer Script?

Best regards,

Alexander