Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql server - vfp how?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01541027
Message ID:
01541180
Views:
49
"How can I create a table in SQL from VFP and populate it from a cursor?"

While I guess you could do that (maybe), it would be messy at best and you would have numerous security issues to overcome.
Normally you create the table in SQL via the SQL Management tools/scripts and then you insert records from VFP.

Following up on the previous sql pass through example.

******************************************************************
*** we have intHandle from the previous example
strSQL = [insert into Names (intPK, FirstName, LastName) values (1, 'Kevin', 'Emmrich') ]
intResults = SQLEXEC(intHandle, strSQL)

******************************************************************

Kevin
Kevin Emmrich
www.jkt9000.com
Previous
Reply
Map
View

Click here to load this message in the networking platform