<?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: Make Query Layer from Two Databases in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367233#M14201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not at this time, but there should be plenty of discussion on the topic if you look for it.&amp;nbsp; The are many variables to consider, especially frequency of update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 14:09:06 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2017-05-18T14:09:06Z</dc:date>
    <item>
      <title>Make Query Layer from Two Databases</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367227#M14195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attempting to create a query layer from a feature class in our SDE database plus three additional tables from an external database that is stored in the same SQL Server instance. The SQL statement supplied contains four joins. One to our feature class, and the remaining three to the external database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the "Make Query Layer" tool set. It accepts the SQL statement supplied and I select three columns to be the unique identifiers. Great so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question&lt;/STRONG&gt;: Is the query layer dynamic? Meaning, does it react like a view where it will continue to read data from the three external tables when additional data is added to those external tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally, it's weird, but the results window states that the process was successful, but I cannot find the output query layer anywhere in my database...!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 18:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367227#M14195</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-05-17T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Layer from Two Databases</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367228#M14196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know query layers are dynamic in the sense that the query is executed every time the layer is displayed. &amp;nbsp;In my experience, query layers perform best when you specify 1 unique identifier field. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since a query layer requires only 1 database connection, I don't think it's possible to make a query layer using data from multiple databases directly in arcgis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option to explorer - I have never tried it, but I know you can use database links to make a connection across multiple databases, then create a view from that which arcgis can read those joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's more on this topic here -&amp;nbsp;&lt;A class="link-titled" href="https://docs.oracle.com/database/121/ADMIN/ds_concepts.htm#ADMIN12084" title="https://docs.oracle.com/database/121/ADMIN/ds_concepts.htm#ADMIN12084"&gt;Distributed Database Concepts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 20:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367228#M14196</guid>
      <dc:creator>StevePtak1</dc:creator>
      <dc:date>2017-05-17T20:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Layer from Two Databases</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367229#M14197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to what Steve said: yes, the query layer is dynamic. It does not create an object in the database. Query layers can only be stored in a specific MXD (Map Documnet). If you need it to persist in the database, look at creating at &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/create-a-database-view-in-arcgis-desktop.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/databases/create-a-database-view-in-arcgis-desktop.htm"&gt;Create a database view in ArcGIS Desktop—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/what-is-a-query-layer-.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/what-is-a-query-layer-.htm"&gt;What is a query layer?—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=27f97d8d-f4ed-46ad-a335-3664f0e035e6&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/geodatabase?sr=search&amp;amp;searchId=27f97d8d-f4ed-46ad-a335-3664f0e035e6&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 20:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367229#M14197</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2017-05-17T20:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Layer from Two Databases</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367230#M14198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you gentlemen for your responses. We currently use SQL Server as our database. I just need to find the most efficient way of extracting data from another database on the same instance and linking it to our GIS map services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most views I create from this data is in the 300,000 record range. Currently, I'm using a 1:M ArcMap "Relate" and then publishing the map service to consume on the other end ie. Geocortex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But some of our map services ie. Ground Water needs to link to 5x categories of data with an approx. record total of over half million records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question: What is the most efficient way of accomplishing this task?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 11:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367230#M14198</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-05-18T11:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Layer from Two Databases</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367231#M14199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of definitions of "efficient" in this context.&amp;nbsp; Cross-database join performance, to paraphrase John Nance Garner, isn't worth, err..., much.&amp;nbsp; The fastest response query would involve replicating an ideal subset of the join data locally (possibly even in denormalized form), then querying that from your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 13:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367231#M14199</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-05-18T13:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Layer from Two Databases</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367232#M14200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting concept....."Replicating an ideal subset on the join data locally"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please expand on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 13:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367232#M14200</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-05-18T13:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Make Query Layer from Two Databases</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367233#M14201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not at this time, but there should be plenty of discussion on the topic if you look for it.&amp;nbsp; The are many variables to consider, especially frequency of update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 14:09:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/make-query-layer-from-two-databases/m-p/367233#M14201</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-05-18T14:09:06Z</dc:date>
    </item>
  </channel>
</rss>

