borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Hi, plot 3 curves using visual basic instead of 1 curve only!)Next Topic (MSFlexGrid) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Multi user Programs with ADO
Poster Message
s.ostwal
Level: Whizz Kid


Registered: 03-08-2006
Posts: 16

icon Multi user Programs with ADO

Hi All,
   I am working on a small project which have a ADO & ACCESS as database. I m tring to implement a multiuser entry screen. I m getting a problem that when 2 users saves entry at same time the entry no. gets same to both users.
  Pls help how to avoid this problem

swapnil       

09-08-2006 at 10:17 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: Multi user Programs with ADO

Hi,
This is because the Microsoft "Jet" Database Engine can take up to 5 seconds to clear its cache and write to disk. This is by design (its called "Lazy Write") so that performance is improved, but it can cause problems where you have a lot of users. remember that the Access database was not designed for high multi-user input - SQL-Server is the datbase for this. But don't despare, there is a way to take control of the "counter", or Auto-number, field. Take a look at this article that gives the code for the workaround :-
http://support.microsoft.com/kb/240317/en-us


____________________________
multi-tasking - the ability to hang more than one app. at the same time.

10-08-2006 at 08:10 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Multi user Programs with ADO
Previous Topic (Hi, plot 3 curves using visual basic instead of 1 curve only!)Next Topic (MSFlexGrid) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder