<?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: Export data out of SDE in consistent order each time in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194531#M11080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only way to be certain of a consistent order is to apply an ORDER BY on the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's probably not particularly safe to rely on the objectid for this purpose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Apr 2012 15:42:31 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2012-04-28T15:42:31Z</dc:date>
    <item>
      <title>Export data out of SDE in consistent order each time</title>
      <link>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194530#M11079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that I need a unique, maintained attribute field to perform SQL on later in my workflow in order to maintain database linkages in a computer aided dispatching system between rebuilds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to have the records, being exported from an SDE using Feature Class to Feature Class, populate the newly created feature class in the same order each time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In other words, when exporting data, from the SDE, I would like FID 1 to be the same record each time I export the same feature class. Currently, each time I export data FID 1 ends up being a different record.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan Sereno&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GIS DBA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 22:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194530#M11079</guid>
      <dc:creator>DanSereno</dc:creator>
      <dc:date>2012-04-27T22:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export data out of SDE in consistent order each time</title>
      <link>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194531#M11080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only way to be certain of a consistent order is to apply an ORDER BY on the query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's probably not particularly safe to rely on the objectid for this purpose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Apr 2012 15:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194531#M11080</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-04-28T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export data out of SDE in consistent order each time</title>
      <link>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194532#M11081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the reply Vangelo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, unless I am doing something wrong, placing "order by OBJECTID" into the "Expression" portion of the Feature Class to Feature Class tool produces the message: Invalid SQL syntx[Microsoft SQL Native Client: Deferred prepare could not be completed.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan Sereno&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GIS DBA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 14:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194532#M11081</guid>
      <dc:creator>DanSereno</dc:creator>
      <dc:date>2012-04-30T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export data out of SDE in consistent order each time</title>
      <link>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194533#M11082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The order_by clause is a separate component in the ArcSDE SE_QUERY_INFO object used&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to query the stream. I haven't looked to see if it's available from ArcObjects, but it's unlikely&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to be available though the where clause in that tool.&amp;nbsp; You might be able to use an ORDER BY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in a subquery, but there's still no guarantee that a query (especially a spatial query) would&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;honor the subquery order.&amp;nbsp; It is very likely that the resulting query would be much slower.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if the export order is reliable, there's still no guarantee that the objectid insert order &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will&amp;nbsp; always be increasing (generally, it is, but it's not requred), so you could still have subtle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;errors in alignment.&amp;nbsp; I suggest you use a column other than the registered rowid column for &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this purpose.&amp;nbsp; You'll most probably need to code your own export tool to achieve this goal.&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, 30 Apr 2012 16:28:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194533#M11082</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-04-30T16:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export data out of SDE in consistent order each time</title>
      <link>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194534#M11083</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;SPAN&gt;I have no write permissions to the SDE from which I am looking to extract data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, unless there is some type of "order", on which any of the many tools that can extract a data set from an SDE operate, it seems I have no way of even writing my own tool to extract records in the same order each time from an SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan Sereno&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GIS DBA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 20:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/export-data-out-of-sde-in-consistent-order-each/m-p/194534#M11083</guid>
      <dc:creator>DanSereno</dc:creator>
      <dc:date>2012-04-30T20:39:07Z</dc:date>
    </item>
  </channel>
</rss>

