<?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: Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862670#M5795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will that set the field "ObjectID" as data type Object ID when viewing the table properties in ArcCatalog?&lt;/P&gt;&lt;P&gt;Also, would the table still need to be registered with the geodatabase if it already has an objectID?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 19:22:10 GMT</pubDate>
    <dc:creator>MeganJohnson</dc:creator>
    <dc:date>2017-06-29T19:22:10Z</dc:date>
    <item>
      <title>Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862666#M5791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Non spatial table created in SQL to be updated automatically daily. Table will be involved in a join so it is registered with the geodatabase in ArcCatalog, creating an OID in field called ObjectID. When the program is run in SQL to delete the table and recreate it using the same name, 0 records appear in ArcGIS. But it appears to be populated in SQL.&lt;/P&gt;&lt;P&gt;So my question is: If a table is registered with the geodatabase and then deleted in SQL and a new table is created with the same name (essentially overwriting the existing table), does the new one need to be re-registered with the geodatabase? Why else would the table appear to be empty when viewing in ArcMap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 14:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862666#M5791</guid>
      <dc:creator>MeganJohnson</dc:creator>
      <dc:date>2017-06-29T14:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862667#M5792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Megan,&lt;/P&gt;&lt;P&gt;The reason why the data is being shown on sql but not on geodatabase is: The geodatabase honors objectid as a unique, not null integer field to uniquely identify rows in tables. However, SQL does not, even though a field very identical to OBJECTID is created. &amp;nbsp;&lt;/P&gt;&lt;H5 class="" style="color: #4d4d4d; font-weight: 500; font-size: 0.875rem; margin: 0px 0px 0.63158em; padding: 0px 1rem 0px 0.5em;"&gt;Below is the caution provided by esri.&amp;nbsp;&lt;/H5&gt;&lt;H5 class="" style="color: #4d4d4d; font-weight: 500; font-size: 0.875rem; margin: 0px 0px 0.63158em; padding: 0px 1rem 0px 0.5em;"&gt;Caution:&lt;/H5&gt;&lt;DIV class="" style="color: #4d4d4d; padding: 0px 0.5em;"&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;Since most &lt;SPAN class=""&gt;ArcGIS for Desktop&lt;/SPAN&gt; functionality requires that the ObjectID be unique, you must be sure that ObjectID values are not duplicated when working directly with the database outside of ArcGIS. For example, when creating views with a one-to-many relationship, there is the possibility that ObjectIDs will be duplicated. This causes inconsistent behavior in &lt;SPAN class=""&gt;ArcGIS for Desktop&lt;/SPAN&gt; functionality.&lt;/P&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;One way to fix the issue is: by creating a GlobalID and treating it as a unique, not null integer.&amp;nbsp;&lt;/P&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;&lt;/P&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em; margin-bottom: 1.71429em;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862667#M5792</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2017-06-29T16:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862668#M5793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. To clarify, the OBJECTID is being created within ArcCatalog when I am registering the table with the geodatabase. However, when the nightly program runs in SQL, the table is deleted and then recreated using the same name. I think that when it is recreated the ObjectID is not getting regenerated within SQL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I create a unique ObjectID in SQL?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862668#M5793</guid>
      <dc:creator>MeganJohnson</dc:creator>
      <dc:date>2017-06-29T17:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862669#M5794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make the OBJECTID field uniqueidentifier, NOT NULL to create a unique ObjectID in SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862669#M5794</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2017-06-29T17:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862670#M5795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will that set the field "ObjectID" as data type Object ID when viewing the table properties in ArcCatalog?&lt;/P&gt;&lt;P&gt;Also, would the table still need to be registered with the geodatabase if it already has an objectID?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862670#M5795</guid>
      <dc:creator>MeganJohnson</dc:creator>
      <dc:date>2017-06-29T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862671#M5796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this one out.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/using-sql-with-gdbs/sql-and-enterprise-geodatabases.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/using-sql-with-gdbs/sql-and-enterprise-geodatabases.htm"&gt;SQL and enterprise geodatabases—Help | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good luck!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 19:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862671#M5796</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2017-06-29T19:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table created in SQL, registered with geodatabase shows no records in ArcGIS but is populated in SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862672#M5797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you have already found out, your workflow as currently implemented won't work.&amp;nbsp; If the updates were not very common, you could try truncating the table (instead of deleting it) and using a cursor to repopulate it, but I don't think that will work in this case since you are doing frequent updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the data completely changing in 24 hours?&amp;nbsp; What percentage of the table is actually getting updates in a day?&amp;nbsp; I ask because the general approach you are trying is inefficient if a small percentage of the records get updated in a day.&amp;nbsp; If there are a large number of updates in a day, then I recommend deleting the table (using ArcGIS because the SDE system tables will get cleaned up) and then re-register the table after it is created again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/table-created-in-sql-registered-with-geodatabase/m-p/862672#M5797</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-07-03T15:54:34Z</dc:date>
    </item>
  </channel>
</rss>

