<?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 IWorkspace.ExecuteSQL UPDATE with file geodatabase in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737957#M19583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to use an UPDATE statement like the following one with file geodatabases (v9.3) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE table_name SET field_name = another_field_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This kind of code always throws an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 17:53:30 GMT</pubDate>
    <dc:creator>PatriceLabbé</dc:creator>
    <dc:date>2012-10-01T17:53:30Z</dc:date>
    <item>
      <title>IWorkspace.ExecuteSQL UPDATE with file geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737957#M19583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to use an UPDATE statement like the following one with file geodatabases (v9.3) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE table_name SET field_name = another_field_name&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This kind of code always throws an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 17:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737957#M19583</guid>
      <dc:creator>PatriceLabbé</dc:creator>
      <dc:date>2012-10-01T17:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: IWorkspace.ExecuteSQL UPDATE with file geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737958#M19584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;UPDATE should work. It's certainly working at 10.1. What does your update statement look like?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:27:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737958#M19584</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-10-01T18:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: IWorkspace.ExecuteSQL UPDATE with file geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737959#M19585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This works (set an arbitrary value):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;string sql = "UPDATE hydro_so_100k SET HYD_NOM = 'nom', HYD_DESCR = 'description' WHERE FEU_NO like '%12%'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These doesn't (update field value from another one's value):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;string sql = "UPDATE hydro_so_100k SET HYD_NOM = HYD_NOM , HYD_DESCR = 'description' WHERE FEU_NO like '%12%'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;string sql = "UPDATE hydro_so_100k SET HYD_NOM = \"HYD_NOM\" , HYD_DESCR = \"HYD_DESCR\" WHERE FEU_NO like '%12%'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I came across this link in my searches : &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=993&amp;amp;t=235859"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=993&amp;amp;t=235859&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;At this point, file geodatabase does not support expressions in the SET clauses of an Update statement, we only support literal values. This is not a bug. We implemented what we needed, with the plan of expanding things over time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to confirm there were limitations with UPDATE statements. Is is still true with 9.3 version?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 18:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737959#M19585</guid>
      <dc:creator>PatriceLabbé</dc:creator>
      <dc:date>2012-10-01T18:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: IWorkspace.ExecuteSQL UPDATE with file geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737960#M19586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Support has been extended at 10.1, but not at 9.3.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 20:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iworkspace-executesql-update-with-file-geodatabase/m-p/737960#M19586</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-10-01T20:07:48Z</dc:date>
    </item>
  </channel>
</rss>

