Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to move the DBC in relation to the DBF files
Message
De
13/11/2000 21:28:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00441273
Message ID:
00441405
Vues:
8
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform