<?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: Replacing SDE commands with python scripts... in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/replacing-sde-commands-with-python-scripts/m-p/725671#M41098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, did you find an answer for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 19:36:53 GMT</pubDate>
    <dc:creator>MathewHay</dc:creator>
    <dc:date>2016-03-07T19:36:53Z</dc:date>
    <item>
      <title>Replacing SDE commands with python scripts...</title>
      <link>https://community.esri.com/t5/data-management-questions/replacing-sde-commands-with-python-scripts/m-p/725670#M41097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've recently upgraded my ArcGIS server from 10.0 to 10.2, and I need to figure out how to replace the ArcSDE commands that I used to register my feature classes and spatial views with python commands.&amp;nbsp; The situation is that each year, a number of spatial tables are copied to new schemas, and the tables are then registered within SDE.&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially I was previously using commands similar to the following...&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sdelayer -o delete -l W_FIELD_EXPORT_SV,shape -u &amp;lt;user&amp;gt; -i &amp;lt;instance&amp;gt; -p &amp;lt;password&amp;gt; -N&lt;/P&gt;&lt;P&gt;sdelayer -o register -l W_FIELD_EXPORT_SV,shape -e nac+ -t ST_GEOMETRY -C OBJECT_ID,SDE -E -13744558,2980372,-7409316,6335845 -R 39 -u &amp;lt;user&amp;gt; -i &amp;lt;instance&amp;gt; -p &amp;lt;password&amp;gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sdetable -o describe -t W_FIELD_EXPORT_SV -u &amp;lt;user&amp;gt; -i &amp;lt;instance&amp;gt; -p &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;sdetable -o grant -t W_FIELD_EXPORT_SV -U VIEW_AGS -A SELECT -u &amp;lt;user&amp;gt; --p &amp;lt;password&amp;gt; -i &amp;lt;instance&amp;gt; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found the &lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.RegisterWithGeodatabase_management &lt;/STRONG&gt;toolbox command, but the drawback to that is that it seems that there is no way to specify a column other than OBJECTID for the ID column.&amp;nbsp; As is shown in my example the column OBJECT_ID is being used for the ID.&amp;nbsp; The toolbox command also does not let me specify the feature class envelope (-E), or the spatial reference ID (-R).&amp;nbsp; Perhaps those parameters are no longer necessary with ArcGIS 10.2?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help, or explanations about how I should go about replacing this process would be greatly appreciated!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/replacing-sde-commands-with-python-scripts/m-p/725670#M41097</guid>
      <dc:creator>RobertYarbrough</dc:creator>
      <dc:date>2014-09-15T16:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing SDE commands with python scripts...</title>
      <link>https://community.esri.com/t5/data-management-questions/replacing-sde-commands-with-python-scripts/m-p/725671#M41098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, did you find an answer for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 19:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/replacing-sde-commands-with-python-scripts/m-p/725671#M41098</guid>
      <dc:creator>MathewHay</dc:creator>
      <dc:date>2016-03-07T19:36:53Z</dc:date>
    </item>
  </channel>
</rss>

