<?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 SQL table to SQL geodatabase table - Can I set OBJECTID as PK? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/sql-table-to-sql-geodatabase-table-can-i-set/m-p/1614156#M9607</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I have 4 SQL database tables that I bring into a SQL geodatabase using Esri's Export Table tool in ArcGIS Pro 3.2.4. I have edited the configuration parameters so that when I bring in a nonspatial business table the B_CLUSTER_ROWID config_string is 1 and it will create a clustered index on the OBJECTID field (that was a rabbit hole to even find that it was creating a non-clustered index without this parameter changed).&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/data/geodatabases/manage-sql-server/alter-configuration-keywords.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.3/help/data/geodatabases/manage-sql-server/alter-configuration-keywords.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I see that OBJECTID isn't set as the PK. Do I need to go into SSMS and set it as the PK? Is there an Esri tool/setting that will do this? I hope so as I'm trying to put this into Model Builder. Is it not a big deal from the SQL side if there is a PK set or not? (not a DBA here. I'm coming at this from the GISP side).&lt;/P&gt;&lt;P&gt;See similar question with no answer from 2018,&amp;nbsp;&lt;SPAN&gt;Why does ArcGIS create a Primary Key in case of Feature Classes, but a Unique Index in case of Geodatabase Table:&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248544" target="_blank"&gt;https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248544&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help! You all are magnificent on here.&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
    <pubDate>Tue, 13 May 2025 16:48:07 GMT</pubDate>
    <dc:creator>AndreaB_</dc:creator>
    <dc:date>2025-05-13T16:48:07Z</dc:date>
    <item>
      <title>SQL table to SQL geodatabase table - Can I set OBJECTID as PK?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sql-table-to-sql-geodatabase-table-can-i-set/m-p/1614156#M9607</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I have 4 SQL database tables that I bring into a SQL geodatabase using Esri's Export Table tool in ArcGIS Pro 3.2.4. I have edited the configuration parameters so that when I bring in a nonspatial business table the B_CLUSTER_ROWID config_string is 1 and it will create a clustered index on the OBJECTID field (that was a rabbit hole to even find that it was creating a non-clustered index without this parameter changed).&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.3/help/data/geodatabases/manage-sql-server/alter-configuration-keywords.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.3/help/data/geodatabases/manage-sql-server/alter-configuration-keywords.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I see that OBJECTID isn't set as the PK. Do I need to go into SSMS and set it as the PK? Is there an Esri tool/setting that will do this? I hope so as I'm trying to put this into Model Builder. Is it not a big deal from the SQL side if there is a PK set or not? (not a DBA here. I'm coming at this from the GISP side).&lt;/P&gt;&lt;P&gt;See similar question with no answer from 2018,&amp;nbsp;&lt;SPAN&gt;Why does ArcGIS create a Primary Key in case of Feature Classes, but a Unique Index in case of Geodatabase Table:&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248544" target="_blank"&gt;https://community.esri.com/t5/data-management-questions/why-there-is-no-primary-key-for-tables/m-p/248544&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help! You all are magnificent on here.&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 16:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sql-table-to-sql-geodatabase-table-can-i-set/m-p/1614156#M9607</guid>
      <dc:creator>AndreaB_</dc:creator>
      <dc:date>2025-05-13T16:48:07Z</dc:date>
    </item>
  </channel>
</rss>

