Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Correct SQL syntax when on Iworkspace.executeSQL

$
0
0
Hi All,

I am working on a VBA app, and I am having trouble with running sql using the executeSQL method.

I have a table and a SDE featureclass, i want to insert all the records from a particular field from the featureclass into the table.
The code i am trying to run is..

Code:


              sql = " insert into DP_TEMP (DP_REF)" + _
                      " select DP_REF " + _
                      " from SY_CSY_CPAT.CITY_DEVELOPMENT_PIPELINES"
              pWS.ExecuteSQL sql

But when the code is run - no errors appear, but the table is empty.

Has anyone got any idea on why it is not working.
Thanks

Viewing all articles
Browse latest Browse all 1374

Trending Articles