Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switching between databases of same name
Message
De
06/01/2006 03:21:28
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Switching between databases of same name
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01083930
Message ID:
01083930
Vues:
61
Hit a funny problem while trying to insert records from files in one database to another of the same database container name.
Files are as follow:-
File A
\database\A\fileaname.dbf
\database\A\stdcontainername.dbc/dcx/dct

File B
\database\B\fileaname.dbf
\database\B\stdcontainername.dbc/dcx/dct

Both use the same database container name located in different directories.
I use views to update the fileaname.
The routine goes this way,
1) open fileaname in database\A
2) Add records into this file
3) open fileaname in database\b alias abc
4) Transfer records in fileaname to abc file
After saving, the next time I do the same process, the records that are supposed to be added to file A in step 2 somehow gets added to abc file instead. The adding is done via local views rather than directly on the tables itself.
I've tried to clos database, set database after step 4 to no avail.
Hope someone can shed some light.
Regards
Yau
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform