MaxLocksPerFile

What is the maximum value I can set for MaxLocksPerFile?
(I'm using Access 2007).
NNOAM1Asked:
Who is Participating?
 
Jim Dettman (Microsoft MVP/ EE MVE)Connect With a Mentor President / OwnerCommented:
<<So, what is the max value for a DWORD that 32 bits can store? >>

 4,294,967,295

Jim.
0
 
als315Commented:
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
 
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
NNOAM1Author Commented:
So, what is the max value for a DWORD that 32 bits can store?
0
 
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
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
 
NNOAM1Author Commented:
Thank You!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.