Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to move the DBC in relation to the DBF files
Message
From
13/11/2000 21:28:56
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00441273
Message ID:
00441405
Views:
14
>>>We need to move a number of tables and DBCs around in order to accomodate multiple compainies in our accounting system.
>>>Thanks a million to anyone who can help on this one!
>>
>>1) Run GenDBC[X] to get the definition of the database.
>>2) In the output file from GenDBC[X], find each table and put the desired path relative to the database in each CREATE TABLE call.
>>3) Loop through each table in the database (which you can get with ADBOBJECTS()) and append from the original locations.
>
>Trey,
> as I said Thanks a Million. I didn't even have to change the path. I guess because I have the search path set.

Beware of the search paths, if you include both locations, you may get the wrong ones open.

Actually, the simples trick I've found so far is to copy all (the DBC and all of its DBFs) and then zap the tables (except, possibly, some fixed lookups) for the new customer. The trouble with this approach is that if you update any stored procedures in one DBC, you have to repeat that for each copy.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform