Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need syntax help with =SQLEXEC syntax
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Need syntax help with =SQLEXEC syntax
Miscellaneous
Thread ID:
00506780
Message ID:
00506780
Views:
113
I have to copy a very large number of records to an existing table on a SQL Server from a VFP 6.0 table. I have no problem moving numeric constants to SQL, but can't seem to get the syntax right to move the character data over. Below is my statement:

m.cStatement = "INSERT into Producercodes (iAgencyID, cAgencyLocation,) Values (1, ?m.AgLoc)"

m.AgLoc being the value in cAgencyLocation.

When I run =SQLEXEC(nconnhndl, m.cStatement) the iAgencyID field on the SQL server table is populated with 1, but cAgencyLocation remains blank.

Suggestions?

Marie
Next
Reply
Map
View

Click here to load this message in the networking platform