<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Correct SQL syntax when on Iworkspace.executeSQL in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/correct-sql-syntax-when-on-iworkspace-executesql/m-p/312220#M8139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any inkling anyone?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 13:21:26 GMT</pubDate>
    <dc:creator>HalilSiddique</dc:creator>
    <dc:date>2013-07-16T13:21:26Z</dc:date>
    <item>
      <title>Correct SQL syntax when on Iworkspace.executeSQL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/correct-sql-syntax-when-on-iworkspace-executesql/m-p/312219#M8138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a VBA app, and I am having trouble with running sql using the executeSQL method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code i am trying to run is..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql = " insert into DP_TEMP (DP_REF)" + _
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " select DP_REF " + _
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " from SY_CSY_CPAT.CITY_DEVELOPMENT_PIPELINES"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pWS.ExecuteSQL sql
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when the code is run - no errors appear, but the table is empty. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone got any idea on why it is not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 13:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/correct-sql-syntax-when-on-iworkspace-executesql/m-p/312219#M8138</guid>
      <dc:creator>HalilSiddique</dc:creator>
      <dc:date>2013-07-12T13:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Correct SQL syntax when on Iworkspace.executeSQL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/correct-sql-syntax-when-on-iworkspace-executesql/m-p/312220#M8139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any inkling anyone?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 13:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/correct-sql-syntax-when-on-iworkspace-executesql/m-p/312220#M8139</guid>
      <dc:creator>HalilSiddique</dc:creator>
      <dc:date>2013-07-16T13:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Correct SQL syntax when on Iworkspace.executeSQL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/correct-sql-syntax-when-on-iworkspace-executesql/m-p/312221#M8140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you able to execute the same insert query from a sql prompt or sql editor and not here? Its always better to have a schema name qualification for the tables to be sure that they are modified correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 14:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/correct-sql-syntax-when-on-iworkspace-executesql/m-p/312221#M8140</guid>
      <dc:creator>SachinKanaujia</dc:creator>
      <dc:date>2013-07-16T14:20:38Z</dc:date>
    </item>
  </channel>
</rss>

