Posted: March 08 2004 at 20:23 | IP Logged
|
|
|
Pat,
Yeah, all these version numbers are confusing. The phupg_1022 will upgrade any previous database version TO 1.02.2 which is the minimum version required to use the phupg that is included with 1.03.3.
I used to try to make the phupg program able to handle every database version and upgrade it to the latest, but it just started getting out of hand. So with the latest utility I decided that it would just upgrade from the last version and I'll keep on hand all of the upgrade utils in case someone needs to upgrade from an older version. The phupg_1022 is the last version that handles all database versions.
On another note, the new phupg utility included with PowerHome 1.03.3 not only upgrades but is an excellent Rebuild utility for your 1.03.2 database. Over time, your database file may get quite large. What happens is that the database file starts out small (approx 1 meg) and as items are added to the database, the file will grow dynamically (usually due to the eventlog). Even if you delete items from the database, the actual filesize will not be reduced. What the phupg utility will do is use a the base clean database and copy all of your data into it, giving you a new freshly rebuilt database.
Now don't think that you need to go out and rebuild your database every week. The database file growing is a natural and normal thing for databases and the Adaptive Server Anywhere engine keeps the database well maintained automatically. But if you ever needed to email a problem database for me to take a look at, I would empty the eventlog and rebuild before sending so that the file would be reasonably sized. The one thing that I would recommend is to use the ph_trimeventlog to keep your eventlog down to a manageable size.
Another note while were talking databases...the ph_backupdb function is handy for normal database care. Your pwrhome.db file is a very important file containing all of your macros, triggers, events, registration, etc. and would not be a fun file to rebuild if something ever happened. So, quite rightly, people will want to periodically make a backup. The problem is, if PowerHome is running, you can't just make a copy of the database file because it won't work properly since PowerHome has it open and the copy will be corrupted. So, before you copy it, you would have to shutdown PowerHome, copy the file, and then restart PowerHome. Kind of a pain for a program trying to make your life easier. This is where the ph_backupdb function is handy. This function allows you to make a backup copy of your database file WITHOUT shutting down PowerHome. You could even schedule PowerHome to do this for you automatically on a periodic basis and have the system create the backup filename based upon the current time and date.
Sorry for such a long post and didn't mean to ramble .
Dave.
|