Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

File Sharing lock exceeded

Posted on 2014-02-05
6
Medium Priority
?
343 Views
Last Modified: 2014-02-08
I am starting another question on a topic I had asked about before.

Prior Lock Related Question

Since then the IT staff has manually changed the default Access lock limit by revising the registry on a couple machines based on this knowledge base article  This appeared to be successful in eliminating the issue.

http://support.microsoft.com/kb/815281LoLock Limit Article

I am again wondering if there is a way to alter this limit temporarily in code.  Their were some suggestion in the prior question that didn't appear to have any effect.  Rather than re-detailing everything here, please refer to the prior question for details.

Any way to alter the limit in code?  This is an Access 2003 MDE, running in Access 2003 runtime, on machines with Win7 Pro 64-bit operating system.
0
Comment
Question by:mlcktmguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 39836291
DAO.DBEngine.SetOption dbmaxlocksperfile, <some number>

Jim.
0
 
LVL 58
ID: 39836310
Guess I should have read the other thread first<g>

There's no reason for the DBEngine.SetOption method not to work that I'm aware of.

Jim.
0
 
LVL 1

Author Comment

by:mlcktmguy
ID: 39836913
I'll give it another try.  What are the default locks and what <some number> would you recommend?
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 39838769
9,500 is the default.   As a test, I would set it abnormally high, say 200,000

Jim.
0
 
LVL 1

Author Comment

by:mlcktmguy
ID: 39838826
Thank you.  Once set will the setting persist until the user exits the application?  Or does it need to be reset periodically?
0
 
LVL 58
ID: 39839681
<<Once set will the setting persist until the user exits the application?  >>

 Yes.

 Once they exit though, unless that line is re-executed again, the setting will be back to what's specified in the registry, which is 9,500 by default.

 The reason by the way the setting exists is to control a run away process from consuming all resources on a server.

  Back when Access started, one of the few server types out there was Novell, which needed protections like this or it could come to a halt.  The default setting harkens back to those days when working with 9,500 locks was a lot.

 In today's times, 9,500 locks is nothing and many routinely run with 50,000 - 100,000.  

 But if you need more then that, then it's worth figuring out why.  It may be legit because of table sizes and the process, but there may also be a problem and ways of optimizing it to consume less resources.

  Keep in mind that all that locking will raise concurrency issues if this is a process done when other users are on.

Jim.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question