<?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: Create Spatial View with ArcSDE feature and external tables in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712797#M40378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need an Enterprise Geodatabase in order to facilitate spatial views. Are you running an Enterprise geodatabase, i.d. Sql Server or Oracle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Essentially, yes. You could use the create view in ArcCatalog to insert your sql statement. Where there are more than two tables involved I prefer to create the view in the database and then register it. Helping with the statement is difficult unless we know where your SQL Server databases (right, SQL Server?) are positioned and how the tables relate to one another or to the base feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Adam Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 16:35:31 GMT</pubDate>
    <dc:creator>AdamZiegler1</dc:creator>
    <dc:date>2017-01-31T16:35:31Z</dc:date>
    <item>
      <title>Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712792#M40373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to create a spatial view in an ArcSDE enterprise database that links a table from a feature class and 3x other tables from an external database. &amp;nbsp;This view needs to be registered with SDE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running ArcSDE 10.4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've been able to gather, is that I need to create a python script creating and registering the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any python samples that I can look at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the proper way of achieving this goal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help, is badly needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 15:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712792#M40373</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-01-31T15:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712793#M40374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walter - what flavor database are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Adam Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712793#M40374</guid>
      <dc:creator>AdamZiegler1</dc:creator>
      <dc:date>2017-01-31T16:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712794#M40375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have implemented spatial views in the past. My rule of thumb is if it gets complicated I create the view natively in the database and then register it with the Enterprise geodatabase. The registration is completed in via your connection to the database, right-clicking on the layer, manage and register with geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Adam Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712794#M40375</guid>
      <dc:creator>AdamZiegler1</dc:creator>
      <dc:date>2017-01-31T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712795#M40376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;We're using ArcGIS server 10.4.1. So does that mean that the SDE is of the same version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712795#M40376</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-01-31T16:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712796#M40377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;So by accessing the ArcSDE database through Catalog, I can use the create view function to create this spatial view? So, under the view definition, I create a sql statement, similar to that what I was trying in SQL server to accomplish this task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any sample sql statement would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712796#M40377</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-01-31T16:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712797#M40378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need an Enterprise Geodatabase in order to facilitate spatial views. Are you running an Enterprise geodatabase, i.d. Sql Server or Oracle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Essentially, yes. You could use the create view in ArcCatalog to insert your sql statement. Where there are more than two tables involved I prefer to create the view in the database and then register it. Helping with the statement is difficult unless we know where your SQL Server databases (right, SQL Server?) are positioned and how the tables relate to one another or to the base feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Adam Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712797#M40378</guid>
      <dc:creator>AdamZiegler1</dc:creator>
      <dc:date>2017-01-31T16:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712798#M40379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;Thank you for your assistance today. It was much appreciated. And yes, I was able to create the spatial view from ArcCatalog and registered it with the database using the GP tools.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The vies is responding as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank again.....Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 20:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712798#M40379</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-01-31T20:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712799#M40380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;I need your assistance again. Rather than using ArcCatalog to create the spatial &amp;nbsp;view, I initially used SQL Server Management studio to create the view inside our SDE database. This, I was told, can corrupt the database. Rather, I should have used the Create &amp;gt; View in ArcCatalog and only supply the correct sql statement. But when I attempt to register the &amp;nbsp;view with the SDE database, I get the 001050 error: Either registered with geodatabase already or cannot open the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After additional research, it seems that only feature classes or tables can only be registered with the geodatabase once and only feature classes or tables are supported?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 15:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712799#M40380</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-02-06T15:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712800#M40381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walter - Did you receiving the error while trying to register the view you created in SQL Server Management Studio or the one you created in ArcCatalog. When you use the ArcCatalog tools, it will be registered with the GDB automatically, which would validate the error (in this case it's more of a warning that the view has already been registered).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Making views in the database is not going to corrupt the database. You have to be careful with views that have been registered with the GDB because there are items written to SDE tables. Here's a quote from help: "You can use the Create Database View tool or the database context menu in ArcGIS Desktop to create a database view, or use the native SQL of your database management system (DBMS)."&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/manage-data/gdbs-in-sql-server/views-in-geodatabase.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/views-in-geodatabase.htm"&gt;Views in an enterprise geodatabase—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Adam Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712800#M40381</guid>
      <dc:creator>AdamZiegler1</dc:creator>
      <dc:date>2017-02-06T16:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712801#M40382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;After my view is created in the SDE, I then alter the data source in my mxd to use the newly created view as it's data source. But then when I attempt to create a map service out of this, during the analyze stage, I get a high error alert which then tells me that I need to register the layer with the database and it will not allow me to publish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712801#M40382</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-02-06T17:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712802#M40383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Walter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to create spatial views in older versions of ArcGIS for Desktop and publish mapservices with this data without getting the high alert error that you mentioned above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:55:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712802#M40383</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-02-06T17:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712803#M40384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Walter - Do you have this patch installed?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://support.esri.com/download/7397" title="http://support.esri.com/download/7397"&gt;ArcGIS for Server Publishing Patch&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Adam&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 17:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712803#M40384</guid>
      <dc:creator>AdamZiegler1</dc:creator>
      <dc:date>2017-02-06T17:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Spatial View with ArcSDE feature and external tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712804#M40385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gentlemen,&lt;/P&gt;&lt;P&gt;This is the first time we're trying to use spatial views for our project. I was attempting to publish last week, but since the layer data source was not registered, it was trying to copy the entire database over to ArcGIS server. But initially, it was letting me publish, without the high alert. Now it won't even let me publish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adam, am not sure if we've installed the server publishing patch. But I will inquire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-with-arcsde-feature-and/m-p/712804#M40385</guid>
      <dc:creator>WalterDziuba1</dc:creator>
      <dc:date>2017-02-06T18:04:38Z</dc:date>
    </item>
  </channel>
</rss>

