Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

Database shared on a LAN

I'm developing a app that will access a LAN database. 50 people will be using this database. How can I allow only one person at a time to update a particular record. Do I need to temporarily lock the record or what?
0
Gmoney
Asked:
Gmoney
  • 2
1 Solution
 
bobbit31Commented:
> Do I need to temporarily lock the record
or what?

yes, if you're using ado here are your lock options:

adLockReadOnly Default. Read-only—you cannot alter the data.
adLockPessimistic Pessimistic locking, record by record—the provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately upon editing.
adLockOptimistic Optimistic locking, record by record—the provider uses optimistic locking, locking records only when you call the Update method.
adLockBatchOptimistic Optimistic batch updates—required for batch update mode as opposed to immediate update mode.
0
 
GmoneyAuthor Commented:
bobbit31, I'm using the Data control. What do I need to do to lock the current record that is being edited?
0
 
bobbit31Commented:
are you using the ADO data control? it's better than the normal data control and you can set the locktype.

under projects/components, select Microsoft ADO Data Control.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now