<?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 Load Point Feature Class through SQL Insert in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92038#M5445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I am trying to accomplish:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Being able to automate data loading into a spatial table/feature class so that the data is viewable in the ArcGIS service after loading.&amp;nbsp; I know how to do this with just a SQL table with a geometry column but am wanting to make sure it is ok to do once registered with the geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When reviewing the documentation about registering it says that you can specify an existing integer field to be the ObjectID field and that from then on the database manages the field starting at the highest integer + 1.&amp;nbsp; If I don't want to use arcobjects to load the data but instead use a sql insert statement is there a problem if a) I increment the objected field my self or b) specify the objected field to be an identity field and let sql auto increment it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This data does not need to be versioned or edits tracked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the right way or am I missing something in the documentation to do this.&amp;nbsp; I have attempted this in a test environment and either option a or b above seem to work, but I wanted to see if there are any pitfalls to doing it this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 15:55:24 GMT</pubDate>
    <dc:creator>JPMurphy</dc:creator>
    <dc:date>2014-05-14T15:55:24Z</dc:date>
    <item>
      <title>Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92038#M5445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I am trying to accomplish:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Being able to automate data loading into a spatial table/feature class so that the data is viewable in the ArcGIS service after loading.&amp;nbsp; I know how to do this with just a SQL table with a geometry column but am wanting to make sure it is ok to do once registered with the geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When reviewing the documentation about registering it says that you can specify an existing integer field to be the ObjectID field and that from then on the database manages the field starting at the highest integer + 1.&amp;nbsp; If I don't want to use arcobjects to load the data but instead use a sql insert statement is there a problem if a) I increment the objected field my self or b) specify the objected field to be an identity field and let sql auto increment it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This data does not need to be versioned or edits tracked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the right way or am I missing something in the documentation to do this.&amp;nbsp; I have attempted this in a test environment and either option a or b above seem to work, but I wanted to see if there are any pitfalls to doing it this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92038#M5445</guid>
      <dc:creator>JPMurphy</dc:creator>
      <dc:date>2014-05-14T15:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92039#M5446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Implementing max(rowidcol)+1 population results in *very* slow INSERTs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS will honor a USER-set rowid column on a table registered with ArcSDE --&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;all you need to do is make sure the rowid values are: 32-bit positive, non-zero &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;integers, unique, and repeatable on subsequent queries (not rownum). Such a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;table could not be registered with the geodatabase (ArcObjects wants SDE-set &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rowids), but registration is not necessary for mapping.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 16:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92039#M5446</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-05-14T16:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92040#M5447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;vangelo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply, yes I would probably not go the route Max(rowed) + 1 but instead use the built in SQL IdentitySpecification so that Sql Server generates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you are saying I am ok to proceed, I'm just concerned about your last comment "Such a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; table could not be registered with the geodatabase (ArcObjects wants SDE-set &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; rowids), but registration is not necessary for mapping."&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the table you are referring to if I tried to use rownum or am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your assistance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 15:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92040#M5447</guid>
      <dc:creator>JPMurphy</dc:creator>
      <dc:date>2014-05-19T15:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92041#M5448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All ArcSDE-registered tables to be resigtered with the geodatabase &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;MUST&lt;/SPAN&gt;&lt;SPAN&gt; have an&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE-set rowid column.&amp;nbsp; This is a requirement.&amp;nbsp; ArcGIS will enforce this by adding&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;an OBJECTID_1 column which is SDE-set if necessary.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lack of geodatabase registration means the table must remain a simple feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(no versioning, no archive, no behaviors,...).&amp;nbsp; This is the opportunity cost of choosing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL loading with an identity column. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can still view the simple feature class with realtime updates in Server, so I'm not &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sure where your concern lies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 16:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92041#M5448</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-05-19T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92042#M5449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;vangelo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I tried to publish an mxd in arcmap 10.2, a dialog box came up saying the table was not registered and the data had to be copied to the server.&amp;nbsp; The words copied to the server make it sound like a one time upload of the data, meaning any inserts after the publication would not be viewable.&amp;nbsp; Maybe I am just misreading the dialog box.&amp;nbsp; Would you explain how you would publish a map service of an unregistered table, so that the sql inserts will be seen after the initial publication?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 16:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92042#M5449</guid>
      <dc:creator>JPMurphy</dc:creator>
      <dc:date>2014-05-19T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92043#M5450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ouch.&amp;nbsp; I &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;thought&lt;/SPAN&gt;&lt;SPAN&gt; you could access simple feature classes from Server, but it seems&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as if it can't.&amp;nbsp; Working around that will wander into unsupported realms.&amp;nbsp; How urgent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is your SQL insert requirement?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 17:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92043#M5450</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-05-19T17:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92044#M5451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vangelo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for you quick responses, the need is probably a 2-3 on a 1(urgent)-5(not urgent) scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll keep searching, unless you dig something else up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 19:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92044#M5451</guid>
      <dc:creator>JPMurphy</dc:creator>
      <dc:date>2014-05-19T19:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92045#M5452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ouch.&amp;nbsp; &lt;STRONG&gt;I &lt;SPAN style="font-style:italic;"&gt;thought&lt;/SPAN&gt; you could access simple feature classes from Server, but it seems&lt;BR /&gt;as if it can't.&lt;/STRONG&gt;&amp;nbsp; Working around that will wander into unsupported realms.&amp;nbsp; How urgent&lt;BR /&gt;is your SQL insert requirement?&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure? I included, based on Help documentation, an option for creating a web service based on a Query Layer in my Geodatabase Framework document. The web service uses the Query Layer in ArcMap, and must be published as a Map Service from within ArcMap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0154000003nt000000"&gt;to this Help page&lt;/A&gt;&lt;SPAN&gt;, the requirements for a web service based on a Query Layer are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"The following describe feature service data requirements specific to data stored in a database:&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt; All data must be from a single database.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write permissions on the data are required if you plan to allow edits to the data. When using operating system authentication, these permissions must be granted to the ArcGIS Server account.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you add database data to ArcMap, a query layer is created. If you alter the query layer definition, be sure the query contains only one table, does not have duplicate columns, and does not include virtual or merged columns.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;The data that is published is determined by the &lt;SPAN style="text-decoration:underline;"&gt;query layer&lt;/SPAN&gt; defined for the table in ArcMap&lt;/STRONG&gt;. For example, tables that contain data types that are not supported by ArcGIS can be published, but the unsupported data types are not accessible through ArcGIS &lt;STRONG&gt;or the feature service&lt;/STRONG&gt;. See Viewing database data in ArcGIS for information on how the query layer is initially defined when a database table is added to ArcMap.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The table must contain a unique integer column maintained by the database. If you create tables and load the data to the database using ArcGIS for Desktop, a database-maintained unique integer ObjectID is added automatically. If you create data outside of ArcGIS, be sure to include a database-maintained unique integer column in the table. If such a column does not exist, you cannot publish a feature service. You can use the Add Incrementing ID Field geoprocessing tool to add a database-maintained integer column to your table if it is in an IBM DB2, Microsoft SQL Server, Oracle, or PostgreSQL database."&lt;/LI&gt;&lt;/UL&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 17:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92045#M5452</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-05-20T17:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92046#M5453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think the OP is using a Query Layer.&amp;nbsp; I make Desktop layers from unregistered&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tables all the time (through ArcSDE connections), but don't publish them (and don't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;have the time to try it right now).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 17:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92046#M5453</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-05-20T17:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92047#M5454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;vangelo,&lt;BR /&gt;&lt;BR /&gt;When I tried to publish an mxd in arcmap 10.2, a dialog box came up saying the table was not registered and the data had to be copied to the server.&amp;nbsp; The words copied to the server make it sound like a one time upload of the data, meaning any inserts after the publication would not be viewable.&amp;nbsp; Maybe I am just misreading the dialog box.&amp;nbsp; &lt;STRONG&gt;Would you explain how you would publish a map service of an unregistered table, so that the sql inserts will be seen after the initial publication?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may not be entirely relevant, but I do think you should start reading this recent (April 2014) Support Services Blog article:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/supportcenter/2014/04/08/the-evolution-of-query-layers/"&gt;The Evolution of Query Layers&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Please note right-click and choosing "Open in new TAB" does not always succeed in opening the right Blog article, use left click instead to open in current page if you have problems, or search the ESRI site with the title of the Blog article)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 19:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92047#M5454</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2014-05-22T19:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load Point Feature Class through SQL Insert</title>
      <link>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92048#M5455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In terms of the publishing, was it an analyzer warning that you got saying 'Layer's data source is not registered with the server and data will be copied'? If so then you can register your connection with the server to directly access the data source. Server uses either a managed or registered data store:&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Determining_how_the_server_will_access_service_data/0154000005p5000000/"&gt;Determining how the server will access service data&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/About_registering_your_data_with_the_server/015400000505000000/"&gt;About registering your data with the server&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Registering_a_SQL_Server_database_with_the_server/015400000613000000/"&gt;Registering a SQL Server database with the server&lt;/A&gt;&lt;SPAN&gt;. I am not sure if you are using SQLServer but you can navigate to the relevant link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/load-point-feature-class-through-sql-insert/m-p/92048#M5455</guid>
      <dc:creator>CherylCleghorn</dc:creator>
      <dc:date>2014-05-23T13:59:27Z</dc:date>
    </item>
  </channel>
</rss>

