Bloat problem related to table creation/deletion
Bloat problem related to table creation/deletion
(OP)
hello to all
I am working on a database that involves looping through code that invlove the creation and deletion of large tables. Today I had a big crash. I realized that my mdb file, usually around 5 Mb in size, had bloated to 1.99 Gb. I'm using Access 2002, where I believe the max file size is 2Gb, so I'm sure this was the cause of my problem.
My backups got me out of a jam, but I'm hoping to prevent this sort of thing in the future. Compacting would likely help, but that would prevent me from running bulk operations - I'd have to frequently stop the code, then compact.
Any clues? Is there a proper way to create then delete queries and tables without having this bloat problem?
Thank you
Vickyc
I am working on a database that involves looping through code that invlove the creation and deletion of large tables. Today I had a big crash. I realized that my mdb file, usually around 5 Mb in size, had bloated to 1.99 Gb. I'm using Access 2002, where I believe the max file size is 2Gb, so I'm sure this was the cause of my problem.
My backups got me out of a jam, but I'm hoping to prevent this sort of thing in the future. Compacting would likely help, but that would prevent me from running bulk operations - I'd have to frequently stop the code, then compact.
Any clues? Is there a proper way to create then delete queries and tables without having this bloat problem?
Thank you
Vickyc
RE: Bloat problem related to table creation/deletion
Also why are you looping through code and not running queries to and and delete records?
RE: Bloat problem related to table creation/deletion
In a few places, I'd used tables instead of queries because I needed to INSERT INTO something with an Autonumber ID field to act as a PK. I suspect this will still give me a few probs.
Thanks again
Vicky
RE: Bloat problem related to table creation/deletion
testName
Should still be able to do that with an append query into your skeleton. I was just suggesting that you normally do not have to loop through code to do this. Often people use recordsets when it is far more efficient to use sql. The general rule is only use recordsets when it can not be done through SQL. (Obviously there is exceptions)
RE: Bloat problem related to table creation/deletion
Hope this makes sense. Any comments welcome.
Vickyc
RE: Bloat problem related to table creation/deletion
If you are inserting record by record this should be very simple. If you are using a query to do bulk insert then you can create an ID by using a ranking query.
RE: Bloat problem related to table creation/deletion
Thanks for your assistance!
RE: Bloat problem related to table creation/deletion
http:
RE: Bloat problem related to table creation/deletion