Discussion Locked

Access update query

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am running an MS Access update query using ODBC. The updated table has aprox. 6500 records, all of which are being updated in one field. The query runs for a few minutes before dispaying the message "Not enough space on temporary disk". In my environment variables i have TEMP set in the system variables to the C:\WINNT\TEMP folder and in the user varaibles to c:\Documents and Settings\... .There is aprox. 5.5Gb free on my C: drive.
My Input table coinsists of 116000 records. It is not really convenient to reduce the number of update records any more.
THe SQL is as follows:-
UPDATE CUSTPART INNER JOIN MFGDB_CP_DISC_DATA ON CUSTPART.CP_INST_NBR = MFGDB_CP_DISC_DATA.CP_INST_NBR SET MFGDB_CP_DISC_DATA.CP_DISC_BRK_PT = [CUSTPART]![CP_DISC_BRK_PT_1_], MFGDB_CP_DISC_DATA.CP_DISC_RT = [CUSTPART]![CP_DISC_RT_1_]
WHERE (((CUSTPART.CP_INST_NBR)=1) AND ((CUSTPART.CP_CUST_NBR)=[Enter Account Nbr]) AND ((MFGDB_CP_DISC_DATA.CP_DISC_DATA_INX)=1));

8 replies

by rgarcia

There are many posibilities for the error. I need more information in order to help you, like: What version of MS Access(2.0, 7.0, 97, 2000)
Network(Novel XXX or NT XX/MS Win2000) and Operating system NT/2000?

The most common problem is the pagelocks required for the transaction. MaxLocksPerFile value defaults is 9500 locks. The value is store in the Windows Registry.

Make a backup copy of the registry files (System.dat and User.dat) before you edit the registry.

Increase the MaxLocksPerFile to 200,000 in

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0

Remember this line change depending of the version of MS Access that you have.

Another posibility is that Microsoft Jet database engine version 3.0 hasa built-in limitation of approximately 268 megabytes (MB) for its temporary files. This is in MS Access 7.0

Hope this is a starting point, with more information I may be able to help you more.

Good luck!

by jwilliams

Thanks for the info. I experience the same problem with both Access 97 and 2000. I have tried increasing MaxLocksPerFile to 200,000; the query runs for longer but still fails with the same error.

by stu mc

As you are running NT there may be a problem with the amount of CACHE available to the system. I had a lot of problems with this when running AutoCAD and needed to increase the size of the SWAPFILE. Not sure if it helps you but may be worth a tryStu

by it_cowboy

Check your joins on the table. Change the query to a select query and see how many records appear.

If there is dodgy join, a possible result could be a table containing 754,000,000 records (6,500 x 116,000). This would definitely run you out ofmemory.

This discussion is closed to new replies.