Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can anyone suggest a technique for exporting data
Message
From
11/06/1999 19:53:40
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
11/06/1999 16:08:20
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, California, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00228993
Message ID:
00229050
Views:
16
Ernie,

What about:

CREATE DATABASE A:\TempDatabase
SELECT * FROM MyTable INTO TABLE A:\TempTable DATABASE A:\TempDatabase

Then on the other end,

SELECT * FROM A:\TempDatabase!TempTable
COPY TO C:\NewTable DATABASE C:\ExistingDatabase


>I need to select data from tables in my database into a cursor using an SQL-SELECT statement. I save the resulting cursor to disk for transport and import into another installation. When the SQL cursor is written to disk as a separate file, I lose all the long field names. So when I import them on the other end, I have to reconstruct the fieldnames.
>
>For example, MYTABLE.LongFieldName001, MYTABLE.LongFieldName002, and MYTABLE.LongFieldName003 becomes C_IMPORT.LongField1, C_IMPORT.LongField2, C_IMPORT.LongField3, etc.
>
>Can anyone suggest a good method or technique for bringing records with shortened fieldnames from my C_IMPORT table into the destination table, one that still has its long fieldnames?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform