Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching between databases of same name
Message
From
06/01/2006 03:21:28
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Switching between databases of same name
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01083930
Message ID:
01083930
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform