473,406 Members | 2,467 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,406 software developers and data experts.

Find size of database?

I have a database in which regurlarily tables are being created or
deleted.
This causes a lot of bloating. I set the property that causes the db
to compress and repair at close but my users started complaining.
Loudly.

now I thought it would be a good idea if I could build a check along
the lines:

if database.size 25 mb then compress

I do not know whether it is possible to find the size of a database or
how to find it (from VBA)

Any suggestions?

TIA,

Henro

Mar 6 '07 #1
3 9129
Move all your temp tables into a "Temp" back end database, private to each
user. You can then recreate the database when the application is opened.

"Henrootje" <He****@gmail.comwrote in message
news:11*********************@s48g2000cws.googlegro ups.com...
I have a database in which regurlarily tables are being created or
deleted.
This causes a lot of bloating. I set the property that causes the db
to compress and repair at close but my users started complaining.
Loudly.

now I thought it would be a good idea if I could build a check along
the lines:

if database.size 25 mb then compress

I do not know whether it is possible to find the size of a database or
how to find it (from VBA)

Any suggestions?

TIA,

Henro

Mar 6 '07 #2
It can be done (as described) but doing it in the middle of the day is
not a good idea.

I assume you've got it split into a front end and a back end? I'd
write a seperate DB (or perform a chron job if you have rights) to
compact the front and back ends overnight. If it's bloating so much
that this is not an option, you really need to convince your
supervisors to invest in SQL Server as the back end and keep Access as
the front end.

On Mar 6, 9:06 am, "Henrootje" <Hen...@gmail.comwrote:
I have a database in which regurlarily tables are being created or
deleted.
This causes a lot of bloating. I set the property that causes the db
to compress and repair at close but my users started complaining.
Loudly.

now I thought it would be a good idea if I could build a check along
the lines:

if database.size 25 mb then compress

I do not know whether it is possible to find the size of a database or
how to find it (from VBA)

Any suggestions?

TIA,

Henro

Mar 6 '07 #3
Henrootje wrote:
I have a database in which regurlarily tables are being created or
deleted.
This causes a lot of bloating. I set the property that causes the db
to compress and repair at close but my users started complaining.
Loudly.

now I thought it would be a good idea if I could build a check along
the lines:

if database.size 25 mb then compress

I do not know whether it is possible to find the size of a database or
how to find it (from VBA)

Any suggestions?

TIA,

Henro
If Filelen(CurrentDB.Name) 25000000 Then
Mar 6 '07 #4

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

Similar topics

0
by: QWERTY | last post by:
--------------Boundary-00=_O5I3QL80000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_O5I3LVC0000000000000" --------------Boundary-00=_O5I3LVC0000000000000...
1
by: Nabhonil Sinha | last post by:
hi, There is facility to do backup of the database. I can use that facility to backup the database. But before i do a backup i want to check if the disk space available enough to backup that...
6
by: masri999 | last post by:
Hello, I need to monitor every 15 minutes growth in data file and log file . Since mdf and intial file sizes are set to high value, measuring these values at 15 min interval will not provide the...
3
by: Bob Stearns | last post by:
I changed a varchar(255) to varchar(3000) an started receiving: Warning: odbc_exec(): SQL error: SQL1585N A system temporary table space with sufficient page size does not exist. SQLSTATE=54048...
2
by: Josh | last post by:
Hi Guys, I have been stuck on this problem for several days now, i have a set of nested datagrids. Inside the second datagrid i have a dropdown list, a textbox and a label. I want the textbox...
2
by: John Regan | last post by:
Hello All I am trying to find the owner of a file or folder on our network (Windows 2000 Server) using VB.Net and/or API. so I can search for Folders that don't follow our company's specified...
27
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
4
by: Henrootje | last post by:
I have a database in which regurlarily tables are being created or deleted. This causes a lot of bloating. I set the property that causes the db to compress and repair at close but my users...
0
by: nimjerry | last post by:
i am using db2 udb V 9 on aix 5.3 and in db2diag.log alwas has this error occurr below is sample message 2008-03-03-09.45.34.366406+420 I306667A443 LEVEL: Warning PID : 835622 ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.