Solved

MaxLocksPerFile

Posted on 2013-01-08
6
1,281 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
  • 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 57
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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 57

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 57
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

730 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