Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CA and SQL syntax problem
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
CA and SQL syntax problem
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01137447
Message ID:
01137447
Views:
52
Hey all,

OK, this is making me loopy: I have a DBF which contains filed-names that match verbs/nouns in SQL. On upsizing, these fields are appended with an underscore. No problems there. Well, we have some SQL tables that need to access these SQL tables, but the legacy SQL code references these fields without underscores, and we have no access to that code. I have constructed a simple test table CMS which consists of ORDER I, DESCRIPTION C(10), PK (primary-key, of course). I have no trouble generating the cursor using the CA, but updates do not work. here I have isolated the problem code:
update CMS SET
[ORDER] = ?CMS.ORDER,
DESCRIPTION = ?CMS.DESCRIPTION,
PK = ?CMS.PK
WHERE pk = ?CMS.pk
...errors out, whereas this works fine...
update CMS SET
DESCRIPTION = ?CMS.DESCRIPTION,
PK = ?CMS.PK
WHERE pk = ?CMS.pk
What is the proper syntax to send parameterized commands to SQL from VFP when the DBF contains a verb like this?
John MR Fitzgerald
Order Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform