473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Temp table explosion

I am using a table to store temporary information. The application
frequently empties and reloads the data in the table from a table bound to
the table. The problem is, the app grows like crazy. I watched a 4MB app
grow to 987MB in one session earlier. I am hoping that someone might offer
a better method of doing this. Questions:

I am emptying the table with "DELETE FROM TempTable". Is there another
method of doing it that might contribute less to bloat?

Is there any way to delete a table that has an open form bound to it? Some
way to unbind the form temporarily?

I'm rather desperate to solve this, it is causing major problems. I've
toyed with crazy notions of counting reloads and forcing a compact every X
reloads. The users would hate that.

Any suggestions appreciated,
Randy Harris
Nov 13 '05 #1
2 1465

"Randy Harris" <ra***@SpamFree.com> wrote in message
news:S0************@newssvr15.news.prodigy.com...
I am using a table to store temporary information. The application
frequently empties and reloads the data in the table from a table bound to
the table. The problem is, the app grows like crazy. I watched a 4MB app
grow to 987MB in one session earlier. I am hoping that someone might offer a better method of doing this. Questions:

I am emptying the table with "DELETE FROM TempTable". Is there another
method of doing it that might contribute less to bloat?

Is there any way to delete a table that has an open form bound to it? Some way to unbind the form temporarily?
Well, this question is moot. I was able to unbind the form by altering the
RecordSource. Then I was able to delete and recreate the table. However,
it did me no good. It seems Access doesn't recover the space when a table
is deleted, until it is compacted. An exercise in futility.

I'm still hoping that someone might have an idea for another approach to the
problem.

Randy Harris
I'm rather desperate to solve this, it is causing major problems. I've
toyed with crazy notions of counting reloads and forcing a compact every X
reloads. The users would hate that.

Any suggestions appreciated,
Randy Harris

Nov 13 '05 #2
"Randy Harris" <ra***@SpamFree.com> wrote in message
news:ZY*********************@newssvr28.news.prodig y.com...
Well, this question is moot. I was able to unbind the form by altering the RecordSource. Then I was able to delete and recreate the table. However,
it did me no good. It seems Access doesn't recover the space when a table
is deleted, until it is compacted. An exercise in futility.

I'm still hoping that someone might have an idea for another approach to the problem.

Place your temporary table in a separate database. Tony Toews has a sample
at http://www.granite.ab.ca/access/temptables.htm

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim | last post by:
For some reason the compiler is telling me that I must declarethe variable @costcenter_tmp on lines 74 and 98...but if i put a select statement in ther (for testing) before the loop I get data back...
1
by: Lauren Quantrell | last post by:
I have read the newsgroups and see this is a common issue but I saw no resolution for it: I have an Access2K frotn end and SQL Server 2K backend. In access, I create a temp table using code in a...
1
by: Robert McEuen | last post by:
Using Access 97 on WinXP I have data in a DB2 table that I'm trying to get into an identical table in my backend db. Based on volume of data and frequency of download, I'm trying to avoid...
1
by: serge | last post by:
I am running SQL Server Best Practices on a SQL 2000 database and it is recommending me to change the temp tables inside SPs to table variables. I had read already in other places to use table...
5
by: wackyphill | last post by:
If you were doing paging of results on a web page and were interested in grabbing say records 10-20 of a result set. But also wanted to know the total # of records in the result set (so you could...
16
by: pukivruki | last post by:
hi, I wish to create a temporary table who's name is dynamic based on the argument. ALTER PROCEDURE . @PID1 VARCHAR(50), @PID2 VARCHAR(50), @TICKET VARCHAR(20)
2
by: Burbletrack | last post by:
Hi All, Hope someone can help me... Im trying to highlight the advantages of using table variables as apposed to temp tables within single scope. My manager seems to believe that table...
1
by: imani_technology_spam | last post by:
Right now, a client of mine has a T-SQL statement that does the following: 1) Create a temp table. 2) Populate temp table with data from one table using an INSERT statement. 3) Populate temp...
4
by: nerurmon | last post by:
Hai, I want to make a temp table in vs 2005. i have few field in one form and a datagridview. i want to make a temp table where i can store my different data in the controls(textbox, combo box) data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.