Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bulk insert VFP table to SQL with memo fields?
Message
From
19/01/2023 16:44:00
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01685857
Message ID:
01685869
Views:
58
>>Is there a way to perform a bulk insert from a VFP table to SQL table if the VFP table has memo fields?
>>I know I can take a VFP table, copy it to a .csv file, and then bulk insert that -- but of course I can't get the memo fields in the .csv file.

You could try table buffering in your remote view.

Or, create a sql script with lots of INSERTs that you can execute from VFP by various means: see https://learn.microsoft.com/en-us/sql/tools/sqlcmd-utility?view=sql-server-ver16

You can use Profiler to review the insert created by the RV, which makes it easier to mimic an insert in a script.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform