<?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 Why there is no primary key for tables in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248544#M14151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Sql Server when I create a layer the OBJECTID is defined as primary key.&lt;/P&gt;&lt;P&gt;When I create a table (using ArcMap) the OBJECTID is not define as primary key.&lt;/P&gt;&lt;P&gt;See the screen shot, AAA is a layer (have a shape filed), BBB is a table.&lt;/P&gt;&lt;P&gt;Any reason for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 05:46:44 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2018-01-22T05:46:44Z</dc:date>
    <item>
      <title>Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248544#M14151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Sql Server when I create a layer the OBJECTID is defined as primary key.&lt;/P&gt;&lt;P&gt;When I create a table (using ArcMap) the OBJECTID is not define as primary key.&lt;/P&gt;&lt;P&gt;See the screen shot, AAA is a layer (have a shape filed), BBB is a table.&lt;/P&gt;&lt;P&gt;Any reason for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 05:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248544#M14151</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2018-01-22T05:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248545#M14152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is BBB table is a non-spatial table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 06:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248545#M14152</guid>
      <dc:creator>shan_sarkar</dc:creator>
      <dc:date>2018-01-22T06:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248546#M14153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I just did right click on the database connection and select&amp;nbsp; New-&amp;gt;Table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 06:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248546#M14153</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2018-01-22T06:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248547#M14154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a Unique Key created in case of Tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/394401_Capture.PNG" style="height: auto;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/394427_Capture3.PNG" style="width: 533px; height: 300px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/394402_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 10:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248547#M14154</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-01-22T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248548#M14155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index is not the same as primary key&lt;/P&gt;&lt;P&gt;See the key icon next to the OBJECTID field that exists in TESTFC and does not exists in TESTTABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 10:51:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248548#M14155</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2018-01-22T10:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248549#M14156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/manage-data/using-sql-with-gdbs/object-id.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/manage-data/using-sql-with-gdbs/object-id.htm"&gt;What is an ObjectID?—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;An ObjectID is a &lt;STRONG&gt;unique, not null integer field&lt;/STRONG&gt; used to uniquely identify rows in tables in a geodatabase. ObjectIDs are limited to 32-bit values, which store a maximum value of 2,147,483,647.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So this satisfies the requirement for an ObjectID atleast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, they may not be the same and hence the question could be "Why does ArcGIS create a Primary Key in case of Feature Classes, but a Unique Index in case of Geodatabase Tables?"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 11:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248549#M14156</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-01-22T11:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248550#M14157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From a quick test, it seems the behaviour is not same in an Oracle Enterprise gdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Feature Class created in an Oracle sde gdb, does not have the ObjectID as a Primary Key.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 11:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248550#M14157</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-01-22T11:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why there is no primary key for tables</title>
      <link>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248551#M14158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just ran into this issue... oddly it appears to be different if the database is 'geodatabase enabled' or not ... at least on SQL Server.&amp;nbsp; I just created a table via ArcCatalog on a plain/non-geodatabase database connection and the OBJECTID column is set as the primary key by default.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/411276_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 22:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248551#M14158</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2018-06-12T22:16:31Z</dc:date>
    </item>
  </channel>
</rss>

