<?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: Recreate All Spatial Indexes at once? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832811#M4331</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/latest/tools/data-management-toolbox/rebuild-indexes.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/rebuild-indexes.htm"&gt;Rebuild Indexes—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool can be used directly. Just select the SDE Connection file..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jul 2018 09:14:02 GMT</pubDate>
    <dc:creator>Asrujit_SenGupta</dc:creator>
    <dc:date>2018-07-21T09:14:02Z</dc:date>
    <item>
      <title>Recreate All Spatial Indexes at once?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832809#M4329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just upgraded by Enterprise Geodatabases from SQL Server 2005 to SQL Server 2014 and now I am getting the "Failed to compress the database.&amp;nbsp; Underlying DBMS error [dbo.DEFAULT]" error message.&amp;nbsp; From looking at other people's questions, it looks like I need to recreate the spatial indexes on all my feature classes.&amp;nbsp; My question is:&lt;/P&gt;&lt;P&gt;Is there a tool or script that will recreate all of the feature classes in my geodatabase at once?&amp;nbsp; So I don't have to do it one at a time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 18:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832809#M4329</guid>
      <dc:creator>MattStull</dc:creator>
      <dc:date>2018-07-20T18:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate All Spatial Indexes at once?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832810#M4330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conceptually you can use the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/rebuild-indexes.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;RebuildIndexes_management()&lt;/A&gt;&amp;nbsp;in a loop.&amp;nbsp; Something like this: (untested!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r'X&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\use\path\of\connection\file

fcList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fc &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fcList&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RebuildIndexes_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832810#M4330</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-12T10:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate All Spatial Indexes at once?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832811#M4331</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/latest/tools/data-management-toolbox/rebuild-indexes.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/rebuild-indexes.htm"&gt;Rebuild Indexes—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tool can be used directly. Just select the SDE Connection file..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2018 09:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832811#M4331</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2018-07-21T09:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate All Spatial Indexes at once?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832812#M4332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help Asrujit!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 14:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/recreate-all-spatial-indexes-at-once/m-p/832812#M4332</guid>
      <dc:creator>MattStull</dc:creator>
      <dc:date>2018-07-23T14:56:57Z</dc:date>
    </item>
  </channel>
</rss>

