Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert into SQL table - remote view or SPT?
Message
From
25/10/2005 15:07:23
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Insert into SQL table - remote view or SPT?
Miscellaneous
Thread ID:
01061995
Message ID:
01061995
Views:
48
I have a large SDF-format text file (around 80,000 lines) that I want to import into a VFP cursor, do some processing, then insert each record into an empty SQL table.

What is the best method to update the back-end table? I would like to use a table-buffered remote view and TABLEUPDATE(.T.), but as far as I can see with the view-designer, in order to do this I need a primary key, and with this data-set there is no single field or combination of fields that can be guaranteed to be unique for each record.

Another method is to use SPT with 'INSERT INTO MyTable (field list) VALUES (value list)', but the table contains 27 fields, which makes this option rather cumbersome, and I guess there will be a large performance hit if called once for each record.

Are there any other ways around this problem? Any help would be appreciated.


Alan
Next
Reply
Map
View

Click here to load this message in the networking platform