<?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: How to convert int type field to ObjectID type recognised by ArcSDE? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-convert-int-type-field-to-objectid-type/m-p/635610#M35920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a table in a database where ArcSDE installed, and that table has a column&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which maps to a 4-byte integer, and that column has the NOT NULL constraint, then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you can register it as USER-set registered rowid column via:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o register -t table_name -c column_name -C USER -u owner ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use ArcGIS to register the table with the geodatabase, but it's likely to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create a new column called OBJECTID and make it an SDE-set rowid.&amp;nbsp; ArcGIS will&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not maintain USER-set rowid columns during editing operations, and in order to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make the table versioned, you'll need to register it as SDE-set ("-C SDE").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2012 10:40:42 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2012-04-05T10:40:42Z</dc:date>
    <item>
      <title>How to convert int type field to ObjectID type recognised by ArcSDE?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-convert-int-type-field-to-objectid-type/m-p/635609#M35919</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;I have a question for you to give me a hand please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have got an ordinary table with an OBJECTID column (type of int) in a SQL Server 2008 R2 instance. I need to store it in an ArcSDE geodatabase running on top of the SQL Server. The thing is how to make the OBJECTID field to the esri-compliant &lt;/SPAN&gt;&lt;STRONG&gt;esriFieldTypeOID&lt;/STRONG&gt;&lt;SPAN&gt; type so that feature operations through Feature Server can be applied down the track.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea or tip would be really helpful! Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 04:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-convert-int-type-field-to-objectid-type/m-p/635609#M35919</guid>
      <dc:creator>AlexChen</dc:creator>
      <dc:date>2012-04-05T04:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert int type field to ObjectID type recognised by ArcSDE?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-convert-int-type-field-to-objectid-type/m-p/635610#M35920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a table in a database where ArcSDE installed, and that table has a column&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which maps to a 4-byte integer, and that column has the NOT NULL constraint, then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you can register it as USER-set registered rowid column via:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o register -t table_name -c column_name -C USER -u owner ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use ArcGIS to register the table with the geodatabase, but it's likely to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create a new column called OBJECTID and make it an SDE-set rowid.&amp;nbsp; ArcGIS will&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not maintain USER-set rowid columns during editing operations, and in order to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make the table versioned, you'll need to register it as SDE-set ("-C SDE").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 10:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-convert-int-type-field-to-objectid-type/m-p/635610#M35920</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-04-05T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert int type field to ObjectID type recognised by ArcSDE?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-convert-int-type-field-to-objectid-type/m-p/635611#M35921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks V for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that I need to run that command line to make a column an esri-type ID.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 06:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-convert-int-type-field-to-objectid-type/m-p/635611#M35921</guid>
      <dc:creator>AlexChen</dc:creator>
      <dc:date>2012-04-10T06:06:13Z</dc:date>
    </item>
  </channel>
</rss>

