Multi User database using MS Jet 4 and ADO 
Author Message
 Multi User database using MS Jet 4 and ADO

Hi, I'm developing a multi user application in VB6 using a database
connection with ADO. I would like to use transactions using BeginTrans
method and actually I'm not able to lock a recordset when it is under
editing.
Why I could open a recordset from a PC while another user is editing the
same recordset from another PC?
I have open the recordset with pessimistic lock and I expect to get an error
message when 2 or more user try to modify the same record.

What can I do to detect locking on recordset?

  dbConn.CursorLocation = adUseServer
  dbConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=data.mdb;"
  dbConn.Open
  rsDestinatari.ActiveConnection = dbConn
  rsDestinatari.CursorType = adOpenDynamic
  rsDestinatari.LockType = adLockPessimistic
  rsDestinatari.Open "Select * from Poeple"

Tanks

Andrea



Mon, 17 Mar 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ADO With Jet Provider, Multi User Hell, Please help

2. Multi User VB 6.0, ADO, Jet

3. Integrity issues with multi-user MS Access database

4. MS Access 7 Database on Network and VB5 Multi User Access Problem

5. Integrity issues with multi-user MS Access database

6. ADO Locking and MS-Jet Database Engine 4.0

7. ADO Locking and MS-Jet Database Engine 4.0

8. Help: Inserting null values into Jet database using ADO

9. Specifying "Current" Jet Database Using ADO

10. MSDE vs JET 4.0 Multi User et al...

11. Multi-User Client Server (Urgent) Jet?

12. multi user with jet DB

 

 
Powered by phpBB® Forum Software