<?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: Cannot drop view from sde, only option is commandline in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805965#M2865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commandline is the only option.&amp;nbsp; even after recreating it in SQL sde (arccatalog, desktop, python) could not see it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This situation was caused by changing the schema of a table that participate in a view, which invalidated the view.&amp;nbsp; The view was then modified, SDE "lost" it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 17:40:30 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2015-02-05T17:40:30Z</dc:date>
    <item>
      <title>Cannot drop view from sde, only option is commandline</title>
      <link>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805962#M2862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this is the second time this week I have had to use the commandline.&amp;nbsp; We have a spatial view where the schema changed of one of the source tables.The view was registered with SDE at an earlier version (10.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This caused SDE to loose track of the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. View is not in the list in arccatalog.&amp;nbsp; &lt;/P&gt;&lt;P&gt;2. View was dropped and recreated in sql with no affect&lt;/P&gt;&lt;P&gt;3. Cannot create a new view in arccatalog as "a table with that name already exists"&lt;/P&gt;&lt;P&gt;4. sdetable -o describe Thinks the table still exists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I drop the table with sdetable -o delete I can recreate the view in sql and all is well, but what happens when they take away this tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot drop it with ArcToolbox, as I cannot browse to it to select it, since it does not show up!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 15:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805962#M2862</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2015-02-04T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot drop view from sde, only option is commandline</title>
      <link>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805963#M2863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're probably not going to want to hear this, but I've had instances where even though I ran the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sdetable -o delete command, I still had to go in and make sure all references to the view were also removed from all of the system tables, like GDB_ITEMS, GDB_ITEMTYPES, GDB_TABLES_LAST_MODIFIED, SDE_ table_registry etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Otherwise the geodatabase thought the view still existed....&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 23:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805963#M2863</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2015-02-04T23:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot drop view from sde, only option is commandline</title>
      <link>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805964#M2864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best practice for making schema changes is to drop the views first.&amp;nbsp; If they've been registered with ArcSDE, then you need to use either Desktop/Python or ArcSDE command-line to remove them.&amp;nbsp; Once you've corrupted the geodatabase, there aren't any easy ways back to stability (which, ironically, is one of the main reasons the command-line tools have been removed -- folks kept hacking the SDE tables without properly managing the GDB tables). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The technique I usually use (if I don't roll back the database to the point before it was corrupted) is to create a new table with database tools using the name of the incompletely dropped table.&amp;nbsp; Then I can use Catalog to drop the table properly (though sometimes I need to double back and create the table with 'sdetable' if the SDE registry is also corrupt, then re-try the Desktop delete).&amp;nbsp; Needless to say, there are multiple backups made before I start these kinds of games. In truth, I can't think of &lt;EM&gt;any&lt;/EM&gt; time since the release of 9.3 where I've needed to resolve GDB corruption by using DML against the SDE.GDB_* tables, so I haven't needed to get &lt;SPAN style="line-height: 1.5;"&gt;a Tech Support analyst on the line to help guide me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While having the command-line tools is a benefit in this situation, it's not really the only (or best) solution.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 03:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805964#M2864</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-02-05T03:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot drop view from sde, only option is commandline</title>
      <link>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805965#M2865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commandline is the only option.&amp;nbsp; even after recreating it in SQL sde (arccatalog, desktop, python) could not see it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This situation was caused by changing the schema of a table that participate in a view, which invalidated the view.&amp;nbsp; The view was then modified, SDE "lost" it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 17:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/cannot-drop-view-from-sde-only-option-is/m-p/805965#M2865</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2015-02-05T17:40:30Z</dc:date>
    </item>
  </channel>
</rss>

