Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Experts advice on ADO Connection

Status
Not open for further replies.

ayh8disjob

Programmer
May 31, 2001
41
SG
Hi Everyone I need an experts advice on this matter
Keys
adOpenKeyset,adOpenStatic,adOpenDynamic
Lock
adLockReadOnly,adLockOptimistic,adLockPessimistic

Which is best combination to to open a database
that i will use in a multiuser client-server environment?
lets say the screnario is
30 or more Users with SQL server database backend
Screnario are as follows:
1. some will just view a record
2. while others will modify a record
3. while others will try to delete a record

What is the best combination to secure my data
when I open recordset in each screnario?

hope you could help me thanks in advance!
 
Hello

Generally if you are only reading data then use adOpenStatic and adLockReadOnly
and if you are updating a record then adOpenDynamic and you will have to decide if you want pessimitic or optimistic locking as this is more dependent on whether you use transaction processing and how many people will be updating concurrently but for safety use adLockPessimistic.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top