Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PACK DATABASE???
Message
From
12/09/1997 23:40:23
 
 
To
12/09/1997 14:00:01
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00049700
Message ID:
00049989
Views:
58
>>How do you provide pack database routine inside a program? I've tried following which doesn't seem to work.
>> CLOSE DATABASES ALL
>> OPEN DATABASE mydb EXCLUSIVE
>> PACK DATABASE
>>When I check after issuing the CLOSE DATABASES ALL using DBUSED(), the mydb database seems to be still open. Then, OPEN DATABASE mydb EXCLUSIVE seems to be ignored and finally an error message for PACK DATABASE shows up with "Database must be opened exclusively". Any suggestions?
>>
>>TIA
>>John
>
>Try using the next command:
>Close database
>OPEN DATABASE mydb
>Use dbfname EXCLUSIVE
>Pack
>I think that you need each DBF in the DATABASE.
>
>Gerardo

Gerardo,

Thanks. Actually, I was thinking of doing just that as a last alternative. However, I was thinking of the easiest way to do and to maintain later since if I add or delete any tables later, I have to re-code the module. What I'm looking for now I guess is for someone to clarify to me why my commands don't work when it should in my opinion.

John.
It's "my" world. You're just living in it.
Previous
Reply
Map
View

Click here to load this message in the networking platform