Solved

MaxLocksPerFile

Posted on 2013-01-08
6
1,332 Views
Last Modified: 2013-01-08
What is the maximum value I can set for MaxLocksPerFile?
(I'm using Access 2007).
0
Comment
Question by:NNOAM1
[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
  • 3
  • 2
6 Comments
 
LVL 40

Expert Comment

by:als315
ID: 38754389
It is Jet's locks quantity. If you have no lock errs, don't touch it.
Look at this article:
http://support.microsoft.com/kb/815281/en-us
I'm not sure there is some maximum, in this article it is 200000. It is limited to server's abilities.
http://support.microsoft.com/default.aspx?scid=kb;en-us;286153
0
 
LVL 58
ID: 38754446
There is no max that I'm aware of although it's stored in the registry (DWord I believe), so the max value would be what 32 bits can store.

The idea of MaxLocks was to prevent run away operations from consuming all server resources under Novell.  But of course the same applies to any OS.  That many open fie handles would be a problem for any OS.

If your having a problem with locking, there are other things you can do, such as setting the UseTransaction property on queries to No.

Jim.
0
 

Author Comment

by:NNOAM1
ID: 38754568
So, what is the max value for a DWORD that 32 bits can store?
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 38754807
<<So, what is the max value for a DWORD that 32 bits can store? >>

 4,294,967,295

Jim.
0
 
LVL 58
ID: 38754824
I should add that I've never had to go higher then a hundred thousand over the past twenty years.

 If your taking out that many locks on a MDB, you've got other problems.

 Default BTW is 9,150.

Jim.
0
 

Author Closing Comment

by:NNOAM1
ID: 38754826
Thank You!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
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 …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

734 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