Solved

MaxLocksPerFile

Posted on 2013-01-08
6
1,365 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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.

628 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