<?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: Save Multi-Versioned Spatial Views in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874190#M6429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you George, I will review  the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Mar 2020 18:31:54 GMT</pubDate>
    <dc:creator>JayHodny</dc:creator>
    <dc:date>2020-03-27T18:31:54Z</dc:date>
    <item>
      <title>Save Multi-Versioned Spatial Views</title>
      <link>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874188#M6427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are having trouble creating a spatial view on a versioned dataset in attempt to link the most recent inspection (stored in a SDE related table) with an Asset (SDE Feature Class).&amp;nbsp; The relationship class is a one to many as there can be multiple inspections over time occurring at the same asset location.&amp;nbsp; We can create SQL queries in SQL Server using the setcurrentversion() stored procedure; however, we can’t figure out how to incorporate that stored procedure into creating and saving a new View (if this is even possible?).&amp;nbsp; Our current SDE database structure is multi-versioned, e.g.,&amp;nbsp; Default – QA – Edit.&amp;nbsp;&amp;nbsp; Ideally, we would have a spatial view linked with the edit version so that we can dynamically symbolize (i.e. days since last inspection) for field staff to prioritize locations and see real-time updates.&amp;nbsp; We use ArcGIS for Server 10.7.1 and our SQL Server geodatabases at are 10.7.1, as is our ArcMap clients.&amp;nbsp; Pro is at the latest released version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 18:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874188#M6427</guid>
      <dc:creator>JayHodny</dc:creator>
      <dc:date>2020-03-27T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Save Multi-Versioned Spatial Views</title>
      <link>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874189#M6428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this doc:&amp;nbsp;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/read-sqlserver-versioned-data-with-sql.htm#ESRI_SECTION1_4DA5EB1E8748406C815FA3CA32C437BE" title="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/read-sqlserver-versioned-data-with-sql.htm#ESRI_SECTION1_4DA5EB1E8748406C815FA3CA32C437BE"&gt;Read versioned data in SQL Server using versioned views—Help | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class="" style="color: blue;"&gt;EXEC&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;sde&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;set_current_version&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a31515;"&gt;'version name'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #a31515;"&gt;&lt;SPAN class="" style="color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: blue;"&gt;filed1,field2,field3&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt;versioned_viewname&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: blue;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;region&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;'b'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 18:20:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874189#M6428</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2020-03-27T18:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Save Multi-Versioned Spatial Views</title>
      <link>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874190#M6429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you George, I will review  the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 18:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874190#M6429</guid>
      <dc:creator>JayHodny</dc:creator>
      <dc:date>2020-03-27T18:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Save Multi-Versioned Spatial Views</title>
      <link>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874191#M6430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;George, I understand and can replicate when it comes to reading versioned data within an active T-SQL window but &lt;SPAN style="text-decoration: underline;"&gt;saving&lt;/SPAN&gt; it as a view accessible from ArcCatalog is where the problem lies.&amp;nbsp; Sql Server rejects having exec as the first line when saving as a new View in the database.&amp;nbsp; “Incorrect syntax near exec”.&amp;nbsp; &amp;nbsp;Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 18:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874191#M6430</guid>
      <dc:creator>JayHodny</dc:creator>
      <dc:date>2020-03-30T18:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Save Multi-Versioned Spatial Views</title>
      <link>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874192#M6431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be honest, I have not saved that type of view before. Just searching around and it you are correct that SQL Server views do not like the "EXEC" in the view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 19:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874192#M6431</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2020-03-30T19:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Save Multi-Versioned Spatial Views</title>
      <link>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874193#M6432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;George, thank you for the quick reply, and thanks for doing some digging on the issue!  Regards, Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 19:51:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/save-multi-versioned-spatial-views/m-p/874193#M6432</guid>
      <dc:creator>JayHodny</dc:creator>
      <dc:date>2020-03-30T19:51:20Z</dc:date>
    </item>
  </channel>
</rss>

