<?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: Using SQL update to update featureclass in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131014#M7573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jnderose,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can MV Views be used in a 2 way replica?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 15:01:24 GMT</pubDate>
    <dc:creator>QuinnMcCarthy</dc:creator>
    <dc:date>2012-03-26T15:01:24Z</dc:date>
    <item>
      <title>Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131009#M7568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have 400 polygons that need a attribute update and not looking forward to doing it 1 by 1. OUr data is based in SQL Server 2008 and I am wondering if anybody uses SQL update command to update FC? I need to update the GIS fc from data in another table. So I am looking at something like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;update VectorReplica.dbo.PARCELS set PARCEL_ID = new_pid from Ranieranneaxparcels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; where VectorReplica.dbo.PARCELS.PARCEL_ID = Ranieranneaxparcels.NEW_PID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done some updates on small basis but nothing like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on the child of the replica with a file GDB backup too for safety reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 14:43:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131009#M7568</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-03-23T14:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131010#M7569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quinn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would be weary of editing the backend SQL base tables for the sake of convenience.&amp;nbsp; While there are editing scenarios that would accommodate this, a replica is not one of them.&amp;nbsp; The replica synchronization depends on edits being made to the delta tables which are then flagged and sent over the the relative replica upon the sync operation.&amp;nbsp; Editing the base table directly would not update these deltas...as a result the edits would never be sent over to the parent replica.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Jon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 16:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131010#M7569</guid>
      <dc:creator>JonDeRose</dc:creator>
      <dc:date>2012-03-23T16:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131011#M7570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So the next time I take the replica down for work can I do it to the parent then and have it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or should I just buck up and get to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131011#M7570</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-03-23T17:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131012#M7571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A full compress *can* pull data from the business tables into your default version yet there are many areas where error can be introduced if your workflow is not completed precisely.&amp;nbsp;&amp;nbsp; In theory you could edit the business tables if the data was not registered as versioned, when using move-to-base editing, or through a careful workflow to pull these base edits into the sde.DEFAULT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are sold on using SQL to edit the attributes the best move would be to use a mutliversioned view to edit these attributes within SQL Server.&amp;nbsp; This would enable you to edit using the sql comands as you desire but do it within a version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Multiversioned views incorporate database views, stored procedures, triggers, and functions to access a specified version of data in a geodatabase table using Structured Query Language (SQL).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_are_multiversioned_views/006z0000000q000000/"&gt;What are multiversioned views?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Creating_multiversioned_views/006z0000000r000000/"&gt;Creating Multiversioned Views&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/in_SQL_Server/006z0000001r000000/"&gt;Editing versioned data in SQL Server using multiversioned views and SQL&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 18:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131012#M7571</guid>
      <dc:creator>JonDeRose</dc:creator>
      <dc:date>2012-03-23T18:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131013#M7572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will look into that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 18:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131013#M7572</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-03-23T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131014#M7573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jnderose,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can MV Views be used in a 2 way replica?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 15:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131014#M7573</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-03-26T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131015#M7574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Quinn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edits made within a Multiversioned view behave similarly as if you were to make edits within a version in ArcMap.&amp;nbsp; They create states within the delta tables and can be synchronized with a relative replica elsewhere in the same manner.&amp;nbsp; There are some limitations in the type of data you may edit however:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_type_of_data_can_be_edited_using_SQL/006z00000011000000/"&gt;What type of data can be edited using SQL?&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Jon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 15:27:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131015#M7574</guid>
      <dc:creator>JonDeRose</dc:creator>
      <dc:date>2012-03-26T15:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131016#M7575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jnderose,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was thinking about my problem and using multiversioned views. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I get by with not using a MV view if I add all of the records from that layer and did a join field in arctoolbox? I have fields that I need &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to delete first and then do a join field to get the data field I need filled in? Then syncronize and to update the parent. Would you need to do the schema changes first?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Quinn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131016#M7575</guid>
      <dc:creator>QuinnMcCarthy</dc:creator>
      <dc:date>2012-04-02T13:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using SQL update to update featureclass</title>
      <link>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131017#M7576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;jnderose,&lt;BR /&gt;&lt;BR /&gt;I was thinking about my problem and using multiversioned views. &lt;BR /&gt;&lt;BR /&gt;Can I get by with not using a MV view if I add all of the records from that layer and did a join field in arctoolbox? I have fields that I need &lt;BR /&gt;&lt;BR /&gt;to delete first and then do a join field to get the data field I need filled in? Then syncronize and to update the parent. Would you need to do the schema changes first?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Quinn&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend doing the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Rec and Post&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Full compress&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Sync replicas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Compress production db&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Unregister versioned objects you need to make schema changes to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Perform schema and attribute updates&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Delete the versioned data from the other replica&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. replicate only the data you made changes to as a new replica&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9. Unregister both replicas&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10. Create a new replica using existing data method&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Apr 2012 16:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-sql-update-to-update-featureclass/m-p/131017#M7576</guid>
      <dc:creator>KenCarrier</dc:creator>
      <dc:date>2012-04-06T16:02:00Z</dc:date>
    </item>
  </channel>
</rss>

