<?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: SQL Insert &amp;amp; update archived feature class in SQL Server in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sql-insert-amp-update-archived-feature-class-in/m-p/760665#M42730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ever find an answer to this?&amp;nbsp; I'm trying to do something similar and am wondering how to get the correct records using SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 15:19:57 GMT</pubDate>
    <dc:creator>NilsBabel</dc:creator>
    <dc:date>2015-07-28T15:19:57Z</dc:date>
    <item>
      <title>SQL Insert &amp; update archived feature class in SQL Server</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-insert-amp-update-archived-feature-class-in/m-p/760664#M42729</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;I'm trying to insert and update features with SQL commands in feature class enabled for archiving in SQL server. I'm trying to follow help instructions in section Geodata / Administering geodatabases / Using SQL. I'm calling INSERT and UPDATE SQL commands directly on archive view, for example BROWNFIELDS_P is table with archived data and BROWNFIELDS_P_EVW is the archived view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to run SQL command on archived view, INSERT commands seems to be OK. But when I try to UPDATE any row by "WHERE OBJECTID = 0", I get PRIMARY KEY constraint error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to perform INSERT and UPDATE SQL commands directly on archived view or should I use these commands on underlying table and extend there commands with GDB_ARCHIVE_OID, GDB_FROM_DATE and GDB_TO_DATE columns?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your advice!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 07:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-insert-amp-update-archived-feature-class-in/m-p/760664#M42729</guid>
      <dc:creator>MichalSchneider</dc:creator>
      <dc:date>2014-04-16T07:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Insert &amp; update archived feature class in SQL Server</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-insert-amp-update-archived-feature-class-in/m-p/760665#M42730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ever find an answer to this?&amp;nbsp; I'm trying to do something similar and am wondering how to get the correct records using SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-insert-amp-update-archived-feature-class-in/m-p/760665#M42730</guid>
      <dc:creator>NilsBabel</dc:creator>
      <dc:date>2015-07-28T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Insert &amp; update archived feature class in SQL Server</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-insert-amp-update-archived-feature-class-in/m-p/1625168#M45670</link>
      <description>&lt;P&gt;You could update/insert/ delete&amp;nbsp; by using _evw . it does care of all GDB columns automatically.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 20:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-insert-amp-update-archived-feature-class-in/m-p/1625168#M45670</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2025-06-19T20:10:16Z</dc:date>
    </item>
  </channel>
</rss>

