Re: Could not update; currently locked error



Andriy wrote:
I am not quite understand how the switching of ADODB from
apartment-threaded to free-threaded may help me to prevent the lock
error. Could you explain me please?

I was just reacting to the fact that you were using multiple threads. I
was not sure if this would have an effect on your lock problem.

With Jet, you also need to be aware of Jet's "delayed-write"
optimization. Jet caches database writes to improve performance:
http://support.microsoft.com/?kbid=240317
http://support.microsoft.com/kb/200300


I wonder if there any way to tell Jet to wait and retry again if a
record is locked?


Not that I know of. You have to handle this in your application code.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • RE: Desktop goes blank after selecting Lock from Loggin Screen
    ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... Desktop goes blank after selecting Lock from Loggin Screen ... it occurs once I choose to log off or lock the server. ...
    (microsoft.public.windows.server.sbs)
  • Re: Automatic date change
    ... you CAN stop a date or any field from updating - by the LOCK ... You are using a DATE or TIME field rather than a CREATEDATE field. ... This message is posted to a newsgroup. ...
    (microsoft.public.word.docmanagement)
  • Re: Error! Bookmark not defined. HELP!!
    ... > find anything so am submitting it myself. ... this is such an informative group and I really appreciate the ... fields and press Ctrl+F11 to lock them. ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.docmanagement)
  • Re: Entering Text to a Form Text Box
    ... What you are talking about is what Word calls an "online form." ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... > Before I lock the form I can eneter text in the box afetr I lock it I ...
    (microsoft.public.word.docmanagement)
  • Re: macro preventing document to be opened
    ... If your file is named Filename.doc, the "lock" file will be ~$lename.doc. ... Microsoft MVP ... please post all follow-ups to the newsgroup so ... > which folder would it reside in? ...
    (microsoft.public.word.docmanagement)