<?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 Issue with SQL Trigger running After Delete in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/issue-with-sql-trigger-running-after-delete/m-p/876134#M6517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a set of triggers for our street centerline and address point feature classes.&amp;nbsp; The first trigger maintains a perpetual unique key, the second copies inserts or updates to a history table, and the third trigger runs after delete and copies deleted records to the same history table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two triggers are working fine.&amp;nbsp; The third trigger (deletes)&amp;nbsp;works just fine on address points, and on a test copy of street centerlines, but is failing on our production street centerlines with the error:&amp;nbsp; "Unable to save edits.&amp;nbsp; Underlying DBMS error [HY000:[Microsoft][SQL Server Native Client 11.0]Connection is busy with results for another command]".&amp;nbsp; All three feature classes are registered as versioned with edits moving to base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our environment is ArcGIS 10.3.1 running on top of SQL Server 2008R2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure someone will point out that I could take advantage of the SDE Archiving functionality, but I decided against that approach because I like moving edits directly to base.&amp;nbsp; I've designed a couple of QA/QC views that&amp;nbsp;are more useful if editors can immediately see&amp;nbsp;their changes.&amp;nbsp; There are always pros and cons, right?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had this same error?&amp;nbsp; Any ideas for troubleshooting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 22:04:25 GMT</pubDate>
    <dc:creator>ShawnaErnst</dc:creator>
    <dc:date>2017-02-21T22:04:25Z</dc:date>
    <item>
      <title>Issue with SQL Trigger running After Delete</title>
      <link>https://community.esri.com/t5/geodatabase-questions/issue-with-sql-trigger-running-after-delete/m-p/876134#M6517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a set of triggers for our street centerline and address point feature classes.&amp;nbsp; The first trigger maintains a perpetual unique key, the second copies inserts or updates to a history table, and the third trigger runs after delete and copies deleted records to the same history table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two triggers are working fine.&amp;nbsp; The third trigger (deletes)&amp;nbsp;works just fine on address points, and on a test copy of street centerlines, but is failing on our production street centerlines with the error:&amp;nbsp; "Unable to save edits.&amp;nbsp; Underlying DBMS error [HY000:[Microsoft][SQL Server Native Client 11.0]Connection is busy with results for another command]".&amp;nbsp; All three feature classes are registered as versioned with edits moving to base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our environment is ArcGIS 10.3.1 running on top of SQL Server 2008R2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure someone will point out that I could take advantage of the SDE Archiving functionality, but I decided against that approach because I like moving edits directly to base.&amp;nbsp; I've designed a couple of QA/QC views that&amp;nbsp;are more useful if editors can immediately see&amp;nbsp;their changes.&amp;nbsp; There are always pros and cons, right?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had this same error?&amp;nbsp; Any ideas for troubleshooting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 22:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/issue-with-sql-trigger-running-after-delete/m-p/876134#M6517</guid>
      <dc:creator>ShawnaErnst</dc:creator>
      <dc:date>2017-02-21T22:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with SQL Trigger running After Delete</title>
      <link>https://community.esri.com/t5/geodatabase-questions/issue-with-sql-trigger-running-after-delete/m-p/876135#M6518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a violation of trigger nesting levels. Wrap up the separate triggers for (inserts/updates) and (deletes) into a single trigger. You'd be better off using Change Data Capture though.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/issue-with-sql-trigger-running-after-delete/m-p/876135#M6518</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2017-11-29T19:10:34Z</dc:date>
    </item>
  </channel>
</rss>

