azizan said:
Ok I already found 'DUMP/LOAD in batch' but after I run this my databases size still same, any mistake I doing wrong there?
Theoretically you should do the following:
1. Dump data-definitions of your database (no users should be using your database)
2. Create a new empty database with the same file structure as the old one
3. Load data definitions into the empty database
4. Dump data from your old database (no users should be using your database)
5. Load data back into the new database
6. Truncate the bi of your new database
That *should* make your new database smaller than the old one. That is, unless you have not deleted sufficient data in the old one. In that case the database might just grow to the same size and have some empty space.
7. Change the startup of your application so it uses the new database
8. Depending on your Progress version you *may* have to recompile your application against the new database (when you get crc errors)
Now, when you just delete data from a database the database does not reduce it's file size. However (someone kick me if I am wrong here), Progress does re-use the space that has become available by the delete and should not start to grow your database until the free space is used up.
All in all the above can be quite an excercise to do. Questions to ask are:
1. How large is your database now and how much data have you deleted? So wat do you expect to gain by all this?
2. What is the reason for you wanting to reduce the file size? Are you running out of disc space (if so it will be very hard to do the dump & load as well because that uses up more space still). Maybe it is better to just add another disc or to replace the disc by a larger one?
3. Especially if you are not running out of space, is it worth the time and trouble?