<?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: Best practices for using nonspatial tables (SQL Views) as event layers? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600242#M33819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would ask a new question, to start.&amp;nbsp; Be sure to include as much information about the data and software in use as possible.&amp;nbsp; Good questions are more likely to result in good answers.&amp;nbsp; See my &lt;A _jive_internal="true" href="https://community.esri.com/people/vangelo-esristaff/blog/2014/07/31/what-to-include-in-a-geonet-question"&gt;blog post&lt;/A&gt; for tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 15:37:55 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2015-06-24T15:37:55Z</dc:date>
    <item>
      <title>Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600228#M33805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To all of the ArcSDE experts,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are your best practices for using nonspatial tables and/or SQL Server views as input for event layers?&amp;nbsp; The Help docs for 9.3 note that because ArcGIS cannot add an ObjectID field to a view, &lt;STRONG&gt;you cannot register a view with the geodatabase&lt;/STRONG&gt;.&amp;nbsp; (I'm using 10.2, but I don't think this has changed.) If a view is not registered, it means that the table (even if it has a field called ObjectID) will not work properly as input for an event layer.&amp;nbsp; Sure, the event layer can be created, but if you try to query the data with a "Select by Attributes", you get very strange results.&amp;nbsp; In addition, you are not able to select features on the map with the Select tool.&amp;nbsp; This is a severe limitation when your data is changing frequently and you want users to be able to see those changes dynamically.&amp;nbsp; With large data files, the process to convert the event layer to a feature class is painfully slow.&amp;nbsp; So, any suggestions on best practices?&amp;nbsp; Would it help to create an indexed view in SQL Server? (Indexed views can provide better performance but this has to be weighed against the increased maintenance requirements of the database.&amp;nbsp; Would ArcGIS "recognize" an indexed view?)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are we better off duplicating a view as a regular, indexed table and then registering that for the event layer?&amp;nbsp; This would require some kind of automatic trigger to re-create the table after the underlying tables were changed by users and seems like a very bad idea when you have multiple people editing the data.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm also wondering whether tables that are registered have limited functionality for ArcGIS Desktop Basic users versus ArcGIS Desktop Standard users.&amp;nbsp; Most of the users only have a Basic license and it would be costly to upgrade everyone to a Standard license.&amp;nbsp; Currently, the underlying SQL tables can be edited through a custom form in ArcGIS regardless of the license level being used.&amp;nbsp; When the data is refreshed, the event layers show the edits made by the users.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Susan-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 16:30:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600228#M33805</guid>
      <dc:creator>SusanZwillinger</dc:creator>
      <dc:date>2015-02-04T16:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600229#M33806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Susan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you add a non-spatial table has changed, I believe starting at 10.0.&amp;nbsp; When you attempt to add a non-spatial table to ArcMap, it will be added a &lt;A href="http://desktop.arcgis.com/en/desktop/latest/map/working-with-layers/what-is-a-query-layer-.htm"&gt;Query Layer&lt;/A&gt;.&amp;nbsp; You will be prompted to choose which field represents the Unique Identifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screen1.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/58426_screen1.png" style="width: 620px; height: 563px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting the Unique Identifier Field, you will be able to create an Event Layer and successfully query/select features within this layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 18:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600229#M33806</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-02-04T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600230#M33807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a reason you are looking at 9.3 Help even though you are using 10.2?&amp;nbsp; A lot has changed in nearly 7 years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 19:12:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600230#M33807</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-02-04T19:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600231#M33808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typically, I don't look at the old help files, but in this particular case I couldn't find the corresponding help topic when I looked in the 10.2 help file, so I thought that it may still be a limitation that you can't register a view with the geodatabase.&amp;nbsp; Have you ever tried to register a SQL Server View in 10.2 as opposed to registering SQL Server tables (which I know we can do)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 18:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600231#M33808</guid>
      <dc:creator>SusanZwillinger</dc:creator>
      <dc:date>2015-02-05T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600232#M33809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your helpful information, Jake.&amp;nbsp; I have used the Make Query Layer tool in ModelBuilder, and this does address some of the issues with event layers, but it doesn't seem to address the underlying performance issues.&amp;nbsp; I'm wondering if having an indexed view would help?&amp;nbsp; In addition, I'm wondering whether it is possible to register an indexed view with the geodatabase and whether the combination of the indexed view and the registered view would improve performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 18:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600232#M33809</guid>
      <dc:creator>SusanZwillinger</dc:creator>
      <dc:date>2015-02-05T18:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600233#M33810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see database views in ArcGIS Desktop just by connecting to a database, what functionality are you hoping to gain by registering a database view?&amp;nbsp; Is it not functionality but performance related?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600233#M33810</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-02-12T18:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600234#M33811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not a question of functionality; it's about performance and best practices.&amp;nbsp; I can see the database tables and views and I can create event layers in ArcGIS.&amp;nbsp; To be more clear about what I am asking, I have numbered my questions below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; What are the best practices for using SQL Server tables, views, or indexed views?&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Does ArcGIS work with an indexed view (I know it works with tables and regular views)&amp;nbsp; and is there any benefit to an indexed view being used with ArcGIS?&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Are we better off duplicating a view as a regular, indexed table? Would that be essentially the same as creating an indexed view?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;4)&amp;nbsp; Do t&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ables that are "registered" have limited functionality for ArcGIS Desktop Basic users versus ArcGIS Desktop Standard users?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;5)&amp;nbsp; Can indexed views be "registered" and is there any benefit to doing that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;-Susan-&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600234#M33811</guid>
      <dc:creator>SusanZwillinger</dc:creator>
      <dc:date>2015-02-12T18:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600235#M33812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, now we are getting down to business.&amp;nbsp; Hopefully &lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt;‌ can find some time to chime in, he always has good information to share on these types of question.&amp;nbsp; I will have to take some time to think them over.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600235#M33812</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-02-12T18:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600236#M33813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best practice (and best performance) calls for actual geometries in your event tables (this allows for a spatial index to be used on draw, vice having to execute a full table scan query).&amp;nbsp; Given native geometry support on all platforms (which allows trigger-based point creation on insert and update), there really isn't any reason to use an Event Theme on a large database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is&lt;STRONG&gt;&lt;EM&gt; not&lt;/EM&gt; &lt;/STRONG&gt;possible to register a view with a geodatabase (right-click 'Register' from Desktop).&amp;nbsp; Spatial views can be registered with ArcSDE (at 10.2.2 and earlier) using 'sdelayer -o register', but this is not the same as registering with the geodatabase (views must be simple feature classes, may only contain one topology type [Point/Line/Polygon], and must contain a unique non-zero positive rowid column [register with USER-set rowid]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no difference in queries from a Desktop Basic client (vice Standard or Advanced); the difference is in administrative and data creation activities and in the size of the toolboox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600236#M33813</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-02-13T14:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600237#M33814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is very helpful.&amp;nbsp; It sounds like we should be creating a spatial view in SQL Server 2008 R2 (the client is using ArcSDE 10.2.1) and then setting up a trigger for when the lat/long data is updated for the points rather than using the Make Query Table option to create an event layer.&amp;nbsp; I'm assuming that the term "spatial view" is equivalent to an "indexed view" in SQL Server terms.&amp;nbsp; Can you point me to any good resources for further reading?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the client wants to use Desktop Basic (and not Standard or Advanced), is there any problem with updating or adding new points in this scenario?&amp;nbsp; Several years ago, I remember a different client having ArcSDE and the only way they could edit or update feature classes was to have an ArcEditor license.&amp;nbsp; For cost reasons, it is obvious that the current client would want to avoid having to use the Standard license when updating or adding data to the map layer from the spatial view being stored in SQL Server.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 16:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600237#M33814</guid>
      <dc:creator>SusanZwillinger</dc:creator>
      <dc:date>2015-02-13T16:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600238#M33815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Susan Zwillinger schreef:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'm assuming that the term "spatial view" is equivalent to an "indexed view" in SQL Server terms. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, a spatial view is a view containing a &lt;EM&gt;spatial &lt;/EM&gt;column, containing actual geometries, and most likely a spatial index for these geometries to enhance display performance.This is not the same as an indexed view (indexes could just be attribute indexes, not refering to any geometry data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple columns with lat/long data are just attribute columns with numeric data from a GIS perspective, they are NOT equivalent to a geometry column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Susan Zwillinger schreef:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the client wants to use Desktop Basic (and not Standard or Advanced), is there any problem with updating or adding new points in this scenario? &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This would either require custom development in ArcGIS, or your client could simply access the base table (not the spatial view) and edit the numerical lat/long data from within ArcGIS. If you have then setup triggers like Vince suggested, the spatial column should be updated as well, and the updated data visible in the spatial view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 16:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600238#M33815</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2015-02-13T16:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600239#M33816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why the heck would you do this? not all data has a uid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600239#M33816</guid>
      <dc:creator>EricKriener</dc:creator>
      <dc:date>2015-06-24T15:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600240#M33817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only data which &lt;EM&gt;does&lt;/EM&gt; have a unique identifier can be used as a layer with ArcGIS.&amp;nbsp; The issue is the need to link the attribute table with the graphics plane, so that a click on the table can flash the graphic, and a click near the graphic can flash the attribute row.&amp;nbsp; If the rowid column isn't a UNIQUE, NON-ZERO, POSITIVE, 32-bit Integer, which returns the same value for the same feature, regardless of WHERE clause, then you could experience unexpected behavior.&amp;nbsp; Feature classes have an SDE-set rowid column by default.&amp;nbsp; Views (more specifically, 1:1 views) can use the registered rowid of the feature class, but 1:M and M:1 cardinality requires careful engineering of rowid designation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600240#M33817</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-06-24T15:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600241#M33818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then how do I geocode my SQL view (which can't be registered) and doesn't have (or need, frankly) uids?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600241#M33818</guid>
      <dc:creator>EricKriener</dc:creator>
      <dc:date>2015-06-24T15:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600242#M33819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would ask a new question, to start.&amp;nbsp; Be sure to include as much information about the data and software in use as possible.&amp;nbsp; Good questions are more likely to result in good answers.&amp;nbsp; See my &lt;A _jive_internal="true" href="https://community.esri.com/people/vangelo-esristaff/blog/2014/07/31/what-to-include-in-a-geonet-question"&gt;blog post&lt;/A&gt; for tips.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 15:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600242#M33819</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-06-24T15:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600243#M33820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it still not possible to register views in the geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600243#M33820</guid>
      <dc:creator>AdamBakiera</dc:creator>
      <dc:date>2019-09-04T14:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600244#M33821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible from 10.5.x onward:&amp;nbsp; &lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.5/get-started/introduction/whats-new-in-arcgis.htm" title="https://desktop.arcgis.com/en/arcmap/10.5/get-started/introduction/whats-new-in-arcgis.htm"&gt;What's new in ArcMap 10.5.x—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 14:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/600244#M33821</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-09-04T14:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for using nonspatial tables (SQL Views) as event layers?</title>
      <link>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/1166145#M43988</link>
      <description>&lt;P&gt;Assorted thoughts (although I use Oracle, not SQL Server):&lt;/P&gt;&lt;P&gt;Occasionally, I've noticed strange behavior when selecting features from spatial views that are &lt;U&gt;registered with the GDB&lt;/U&gt;. If I export the view as an FC, then the selection issues don't happen with that FC. The selection issues don't happen in non-registered views either. So, I try to avoid registering views with the GDB, unless it's actually needed for publishing a map service to Portal, etc.&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/340579/registered-view-gets-buggy-when-database-link-added" target="_self"&gt;Registered view gets buggy when database link added [closed]&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/336510/unexpected-query-layer-results-why-does-unioning-with-dual-fix-it" target="_self"&gt;Unexpected query layer results: Why does unioning with DUAL fix it?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When using Oracle queries/views in ArcMap, I've found I need to &lt;U&gt;&lt;EM&gt;cast&lt;/EM&gt;&lt;/U&gt; the ObjectID to an integer: &lt;FONT face="courier new,courier" color="#0000FF"&gt;cast(objectid as number(38,0)) as objectid&lt;/FONT&gt;. Otherwise, ArcMap sometimes doesn't recognize the ObjectID as a valid unique identifier. I'm not sure if something similar is needed in SQL Server or not.&lt;/P&gt;&lt;P&gt;For cases where we don't have an ObjectID, using Oracle's ROWNUM column (a&amp;nbsp;pseudocolum) seems to work pretty well too: &lt;FONT face="courier new,courier" color="#0000FF"&gt;cast(rownum as number(38,0)) as rownum_&lt;/FONT&gt;. Note: the column can't be called "rownum"; it needs to be called something else like "rownum&lt;FONT size="5" color="#000000"&gt;&lt;STRONG&gt;_&lt;/STRONG&gt;&lt;/FONT&gt;".&lt;BR /&gt;Some people say using ROWNUM as the unique identifier will produce unexpected results. But I haven't found it to be a problem. The key thing is: the unique identifier definitely needs to be &lt;U&gt;&lt;EM&gt;unique&lt;/EM&gt;&lt;/U&gt;. Otherwise, unexpected results do occur -- especially in the attribute table.&lt;BR /&gt;Does SQL Server have an equivalent column to Oracle's ROWNUM pseudocolumn?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/choose-unique-identifier.htm" target="_self"&gt;Unique identifier fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/429362/integer-representation-of-textual-value-as-unique-id-for-query-layer" target="_self"&gt;Integer representation of textual value (as unique ID for query layer)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For what it's worth, I noticed that the SDE.ST_GEOMETRY datatype was particularly slow when used in some spatial views (data source: dblink/an external database). I found that SDO_GEOMEMTRY in a spatial view, or simply using an XY Event Layer (based on numeric XY columns), was&amp;nbsp;&lt;U&gt;much&lt;/U&gt; faster than SDE.ST_GEOMETRY. I talk about it here: &lt;A href="https://gis.stackexchange.com/questions/380176/are-xy-event-layers-optimized-indexed-on-the-fly" target="_self"&gt;Are XY event layers optimized/indexed on-the-fly?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't have any experience with indexed views in SQL server. But I believe Oracle's similar functionality, materialized views, does work in ArcMap. Although materialized views are essentially &lt;EM&gt;tables&lt;/EM&gt;, they're not just an &lt;EM&gt;index,&amp;nbsp;&lt;/EM&gt;so I suppose&amp;nbsp;the two concepts aren't really the same/can't be directly compared.&lt;BR /&gt;Note: Registering materialized views with the GDB is a bad idea -- I think it converts the materialized view to a regular table, which breaks the sync. I don't know if the same thing applies to indexed views in SQL Server or not.&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/380113/materialized-view-breaks-when-registered-with-the-gdb" target="_self"&gt;Materialized view breaks when registered with the GDB&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/380120/sdo-geom-materialized-view-why-is-static-field-slower-than-dynamic-field" target="_self"&gt;SDO_GEOM materialized view: Why is static field slower than dynamic field?&lt;/A&gt;&amp;nbsp;(answer: spatial index was missing)&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/381765/materialized-view-with-fast-refresh-on-remote-table-how-to-include-a-shape-colu" target="_self"&gt;Materialized view with FAST refresh on remote table: How to include a SHAPE column?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Question: Do indexed views in SQL Server require a spatial index for fast performance? Is that even possible, since I assume an indexed view is still just a regular view?&lt;/P&gt;&lt;P&gt;Have you considered converting the non-spatial table to a feature class, and then automatically populating the geometry using calculation attribute rules or a db trigger? Or if that won't work, could you create a parallel/helper FC that has a geometry, and populate that FC using attribute rules or db triggers?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;I know this post is old. And a lot of my points pertain to Oracle, not SQL Server. But I thought I'd share my thoughts in case they're helpful to anyone or trigger some ideas...&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 15:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-practices-for-using-nonspatial-tables-sql/m-p/1166145#M43988</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-02T15:03:58Z</dc:date>
    </item>
  </channel>
</rss>

