Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating SQL Server table
Message
From
09/03/2005 10:54:10
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Updating SQL Server table
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
00994024
Message ID:
00994024
Views:
44
I need to insert 400,000 records from a VFP8 table into a Sql Server table nightly.

I have created an updatable remote view in my VFP DBC to this SQL Server table. I then update the Sql Server table as follows.
***
USE myRemoteView IN 0
USE myvfptable IN 0
SELECT myvfptable
SCAN
   SCATTER MEMVAR
   INSERT INTO myRemoteView FROM MEMVAR
ENDSCAN
***
All this works, but it takes a long time to complete. Is there a faster way to run this process? How can I speed this up>

Thanks,

Jerry
Next
Reply
Map
View

Click here to load this message in the networking platform