<?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: How can I receive a notification of when a version has been posted? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/how-can-i-receive-a-notification-of-when-a-version/m-p/766843#M702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the SDE_Versions table from the database end.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm"&gt;System tables of a geodatabase in SQL Server—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;state_id" value should change whenever your Editors will Post to QAQC version, so you may somehow use that to get a notification.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;Usually you can &lt;STRONG&gt;manually&lt;/STRONG&gt; check the 'Date Modified' part in the Geodatabase Administration window in ArcCatalog:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;IMG __jive_id="368394" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/368394_Capture12.PNG" style="height: auto;" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;But this Modified date is NOT&amp;nbsp;a part of the Versions table, so this cannot be used from the database end to keep a check.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 09:34:00 GMT</pubDate>
    <dc:creator>Asrujit_SenGupta</dc:creator>
    <dc:date>2017-08-24T09:34:00Z</dc:date>
    <item>
      <title>How can I receive a notification of when a version has been posted?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/how-can-i-receive-a-notification-of-when-a-version/m-p/766842#M701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a project coming up in which multiple editors will be working on a versioned geodatabase feature class. &amp;nbsp;I would like to receive a ping from the database server when a user posts his or her version to a QAQC version so that I can&amp;nbsp;check the editors' work before accepting it and posting the QAQC version to Default. &amp;nbsp;I thought that a trigger that fires when&amp;nbsp;&lt;EM&gt;some&lt;/EM&gt; table is updated was&amp;nbsp;the right track, but I'm just not sure &lt;EM&gt;which&lt;/EM&gt; table the trigger should be&amp;nbsp;reacting to. &amp;nbsp;Does anyone have any experience in this area?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working in SQL Server. &amp;nbsp;Geodatabase and desktops are at 10.5.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 22:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/how-can-i-receive-a-notification-of-when-a-version/m-p/766842#M701</guid>
      <dc:creator>JasonHoward</dc:creator>
      <dc:date>2017-08-23T22:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I receive a notification of when a version has been posted?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/how-can-i-receive-a-notification-of-when-a-version/m-p/766843#M702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the SDE_Versions table from the database end.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/system-tables-sqlserver.htm"&gt;System tables of a geodatabase in SQL Server—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;state_id" value should change whenever your Editors will Post to QAQC version, so you may somehow use that to get a notification.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;Usually you can &lt;STRONG&gt;manually&lt;/STRONG&gt; check the 'Date Modified' part in the Geodatabase Administration window in ArcCatalog:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;IMG __jive_id="368394" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/368394_Capture12.PNG" style="height: auto;" /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;But this Modified date is NOT&amp;nbsp;a part of the Versions table, so this cannot be used from the database end to keep a check.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 09:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/how-can-i-receive-a-notification-of-when-a-version/m-p/766843#M702</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2017-08-24T09:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I receive a notification of when a version has been posted?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/how-can-i-receive-a-notification-of-when-a-version/m-p/766844#M703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This gets me most of the way, but I still need a way to catch only those posts going to the QAQC version....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #0000ff;"&gt;CREATE TRIGGER&lt;/SPAN&gt; dbo.NotifyJason&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; &amp;nbsp; ON&lt;/SPAN&gt; dbo.sde_versions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; &amp;nbsp; AFTER&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff;"&gt;UPDATE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;AS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;BEGIN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;&amp;nbsp; &amp;nbsp; SET NOCOUNT ON;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; &amp;nbsp; IF&lt;/SPAN&gt; (&lt;SPAN style="color: #ff00ff;"&gt;UPDATE&lt;/SPAN&gt;(state_id))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN style="color: #ff00ff;"&gt;count&lt;/SPAN&gt;(*) &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; record_count &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt; inserted i &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; name = &lt;SPAN style="color: #ff0000;"&gt;'QAQC'&lt;/SPAN&gt;) &amp;gt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; INSERT INTO dbo.TEST (name, owner, state_id, parent_name, post_time)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT&lt;/SPAN&gt; i.name, i.owner, i.state_id, i.parent_name, &lt;SPAN style="color: #ff00ff;"&gt;GETDATE&lt;/SPAN&gt;()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM&lt;/SPAN&gt; inserted i&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #339966;"&gt;--then email me...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; color: #0000ff;"&gt;END&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="color: #3d3d3d;"&gt;The table the output gets written into, dbo.TEST, cannot be registered with the geodatabase. The presence of the OBJECTID field on a geodatabase table was problematic for what I was doing here so I just created a table in the database to hold those Post records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 19:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/how-can-i-receive-a-notification-of-when-a-version/m-p/766844#M703</guid>
      <dc:creator>JasonHoward</dc:creator>
      <dc:date>2017-08-24T19:44:02Z</dc:date>
    </item>
  </channel>
</rss>

