JeffPalmer
MIS
I have a Delphi 6 application that connects to a Microsoft Access 2002/2003 database and adds about 1100 rows a day. The program was running fine until there were around 975k rows in the Access table. I now get an error that the Microsoft Access driver is unknown. While running the app inside Delphi, I found that I was getting an out of memory exception (which probably stepped on the Access driver).
with ADOTable1 do
begin
[blue]{Check the DB for the ORD_ID and see if it is already there}[/blue]
if locate('ORD_ID',ColumnData[4],[])
then
When locate is called and it searches the database for the value in ColumnData[4], the program runs out of memory near the end of the database, which is currently around 975k rows. If I delete, say 50k rows, the program runs fine again. I have not approached the limit of the Access table (the mdb file is under 400megs with the limit for Access a little under 2G and should handle at least 5-6 million rows).
Is there either a compiler directive or other parameter that can increase the available memory to solve this issue?
If not, is there something else I can use to search the database for that value without using so much memory?
with ADOTable1 do
begin
[blue]{Check the DB for the ORD_ID and see if it is already there}[/blue]
if locate('ORD_ID',ColumnData[4],[])
then
When locate is called and it searches the database for the value in ColumnData[4], the program runs out of memory near the end of the database, which is currently around 975k rows. If I delete, say 50k rows, the program runs fine again. I have not approached the limit of the Access table (the mdb file is under 400megs with the limit for Access a little under 2G and should handle at least 5-6 million rows).
Is there either a compiler directive or other parameter that can increase the available memory to solve this issue?
If not, is there something else I can use to search the database for that value without using so much memory?