<?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: Update an registered table with SQL? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694428#M39447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcObjects can specify a USER-set objectid, it's just not in the GUI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Dec 2010 10:21:05 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2010-12-30T10:21:05Z</dc:date>
    <item>
      <title>Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694425#M39444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have to alter (truncate and refill) a table on my SQL Server 2008 every night. The table is used as event layer; so an objectid is needed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But trying to "select...... into.....from" doesn't work because the objectid is missing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this page &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/in_SQL_Server/0093000015r7000000/"&gt;Editing nonversioned geodatabase data in SQL Server using SQL&lt;/A&gt;&lt;SPAN&gt; but this seems to work only for one dataset. I have to alter 30.000 datasets with an unique ID and i don't want to write an SQL-Statment with 30.000 lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my simple question: How to alter an registered table with "select...... into.....from"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of the lost of permissions i don't want to delete and create the table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 08:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694425#M39444</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-12-29T08:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694426#M39445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Generally "update" means something different when referring to SQL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you mean 30k *rows* or 30k *tables*?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you replace the table contents daily you should consider registering the table with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a USER-set rowid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't you just take the extra step to make a point layer from the table?&amp;nbsp; Event&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layers don't have a spatial index, which means they are generally slower.&amp;nbsp; Loading&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;30k points into ArcSDE takes just seconds, and the API takes care of the registered&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;column.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 10:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694426#M39445</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-12-29T10:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694427#M39446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh yes, you're right. My SQL-terms are unintelligible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to replace the table contents of 30.000 rows daily with BIDS. The table has to be used by different software applications. ArcGIS is the only GIS. Other applications wouldn't like a feature class. I think the speed is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe i want to create a FC later... Is there a command to make a point feature class, so it can run in batch?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise i was able to register/unregister my table with the sdetable-command. Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: Why can I do not set the USER-set rowid with ArcCatalog?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'am wondering that some commands are only possible with ArcGIS/ArcCatalog and others only with this sde-tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 17:48:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694427#M39446</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-12-29T17:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694428#M39447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcObjects can specify a USER-set objectid, it's just not in the GUI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 10:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694428#M39447</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-12-30T10:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694429#M39448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you use SQL-Server 2008, you can use the native GEOMETRY type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 10:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694429#M39448</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-12-30T10:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694430#M39449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you elaborate on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE TABLE SpatialTable &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( id int IDENTITY (1,1),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GeomCol1 geometry, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GeomCol2 AS GeomCol1.STAsText() );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INSERT INTO SpatialTable (GeomCol1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VALUES (geometry::STGeomFromText('point ((100 100))', 0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GO&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can ArcGIS display that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 11:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694430#M39449</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-12-30T11:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694431#M39450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at the documentation for registering a layer with ArcSDE, or if you're&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using ArcGIS 10, for query layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 12:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694431#M39450</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-12-30T12:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694432#M39451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Registering a layer works pretty good but how can i display a table with a GEOMETRY type?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 12:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694432#M39451</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-12-30T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694433#M39452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you register a *layer* (not table) with ArcSDE, an entry is made in the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LAYERS table for that GEOMETRY column, making it availbale to ArcGIS for &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geodatabase participation.&amp;nbsp; Query layers view GEOMETRY columns without &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;registration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 12:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694433#M39452</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-12-30T12:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Update an registered table with SQL?</title>
      <link>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694434#M39453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much. It works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry but i'am a rookie with this tools and SQL Server an it took a while from &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"register a *layer*"&lt;/SPAN&gt;&lt;SPAN&gt; to sdelayer -register .....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 13:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/update-an-registered-table-with-sql/m-p/694434#M39453</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2010-12-30T13:06:22Z</dc:date>
    </item>
  </channel>
</rss>

