Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update SQL table from VFP table
Message
From
28/08/2015 13:04:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Update SQL table from VFP table
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01623948
Message ID:
01623948
Views:
67
Looking for a little bit of best practices, and a little bit of how to.

I need to update a SQL Server table with values from a VFP table.

Should I upload the VFP table to a temporary SQL cursor and SQLEXEC the update statement? How would upload the cursor and remove it when done?

Or should I download the SQL table to a VFP cursor,run the UPDATE statement in VFP, and post the results back to SQL? How would I post the updates back to SQL?

I know how to do this by SCANning the VFP table and updating a single record at a time, but I would prefer to avoid that overhead.

Chris.
Next
Reply
Map
View

Click here to load this message in the networking platform