Raj Parulekar
2003-11-21 20:25:16 UTC
Hi,
I am trying to Update some fields in a VFP database through an "OLE DB
Provider for VFP" connection (from within a DTS package), specifically I
need to set the value of a field in one table to the value of a field in
another table based on a join. Now this can be done in SQL Server (or I
would think in any other ANSI SQL compliant database) using the following
syntax:
UPDATE t1
SET t1.Field1 = t2.Field1
FROM Table1 t1
INNER JOIN Table2 t2 ON t1.ForeignKey = t2.PrimaryKey
WHERE t1.Field1 > t2.Field1
But when I try to execute this statement using the OLE DB connection I get
the following error:
"Command contains unrecognized phrase/keyword"
Is there another way to what I am trying to do above to make it work?
Thanks for your help!!!
Raj
I am trying to Update some fields in a VFP database through an "OLE DB
Provider for VFP" connection (from within a DTS package), specifically I
need to set the value of a field in one table to the value of a field in
another table based on a join. Now this can be done in SQL Server (or I
would think in any other ANSI SQL compliant database) using the following
syntax:
UPDATE t1
SET t1.Field1 = t2.Field1
FROM Table1 t1
INNER JOIN Table2 t2 ON t1.ForeignKey = t2.PrimaryKey
WHERE t1.Field1 > t2.Field1
But when I try to execute this statement using the OLE DB connection I get
the following error:
"Command contains unrecognized phrase/keyword"
Is there another way to what I am trying to do above to make it work?
Thanks for your help!!!
Raj