<?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 Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157956#M8840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I am trying to create the stub of a spatial view in 9.3.1 ArcSDE running on top of SQL2008 using the GEOMETRY option versus the SDEBINARY.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I can run this command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T v_Parcels -t "PARCEL" -c "PARCEL.OBJECTID,PARCEL.POLYID" -i 5151 -s DEVGISSQL -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will create a view just fine, so I know I am talking to the SDE Engine and SQL Server just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I try to add the SHAPE field like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T v_Parcels -t "PARCEL" -c "PARCEL.OBJECTID,PARCEL.POLYID,PARCEL.SHAPE" -i 5151 -s DEVGISSQL -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a 'Error: Invalid entity type (-29).' with the error unable to create view v_Parcels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some switch I am missing? Or am I not able to create a view like this because I am using SQL2008 with MSGeometry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can create a view no problem using the SDE objects, but we want to access our data from more than just ESRI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 01:18:23 GMT</pubDate>
    <dc:creator>DEWright_CA</dc:creator>
    <dc:date>2010-10-08T01:18:23Z</dc:date>
    <item>
      <title>Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry</title>
      <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157956#M8840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I am trying to create the stub of a spatial view in 9.3.1 ArcSDE running on top of SQL2008 using the GEOMETRY option versus the SDEBINARY.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I can run this command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T v_Parcels -t "PARCEL" -c "PARCEL.OBJECTID,PARCEL.POLYID" -i 5151 -s DEVGISSQL -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will create a view just fine, so I know I am talking to the SDE Engine and SQL Server just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I try to add the SHAPE field like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T v_Parcels -t "PARCEL" -c "PARCEL.OBJECTID,PARCEL.POLYID,PARCEL.SHAPE" -i 5151 -s DEVGISSQL -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a 'Error: Invalid entity type (-29).' with the error unable to create view v_Parcels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some switch I am missing? Or am I not able to create a view like this because I am using SQL2008 with MSGeometry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can create a view no problem using the SDE objects, but we want to access our data from more than just ESRI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 01:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157956#M8840</guid>
      <dc:creator>DEWright_CA</dc:creator>
      <dc:date>2010-10-08T01:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry</title>
      <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157957#M8841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When using native geometry, use SQL to create the view, then 'sdelayer -o register'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to make it available through ArcSDE.&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>Fri, 08 Oct 2010 11:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157957#M8841</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-10-08T11:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry</title>
      <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157958#M8842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, so I have done this; but I am getting kicked back a underlying DBMS layer error and finally this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft SQL Server Native Client 10: Cannet alter 'V_PARCELADDRESS' because it is not a table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When using native geometry, use SQL to create the view, then 'sdelayer -o register'&lt;BR /&gt;to make it available through ArcSDE.&lt;BR /&gt; &lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 17:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157958#M8842</guid>
      <dc:creator>DEWright_CA</dc:creator>
      <dc:date>2010-10-08T17:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry</title>
      <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157959#M8843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What does 'sdetable -o describe' report for the table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What 'sdelayer -o register' command are you using (less password)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you specifying an existing NOT NULL unique integer rowid column with the '-C' flag?&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>Fri, 08 Oct 2010 17:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157959#M8843</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-10-08T17:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry</title>
      <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157960#M8844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-style:italic;"&gt;What does 'sdetable -o describe' report for the table? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the describle, the View I have built does not even show up in the list, only the three true geometry layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;What 'sdelayer -o register' command are you using (less password)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdelayer -o register -l v_ParcelAddress,OBJECTID -e a -t GEOMETRY -C OBJECTID -i 5153 -s devgissql&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Are you specifying an existing NOT NULL unique integer rowid column with the '-C' flag?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yup, you can see that above, just using the OBJECT ID from the spatial layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 18:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157960#M8844</guid>
      <dc:creator>DEWright_CA</dc:creator>
      <dc:date>2010-10-08T18:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry</title>
      <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157961#M8845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does 'sdetable -o describe -t {view_name}' return the view's description?&amp;nbsp; I know&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this works with Oracle, PostgreSQL, and DB2, even if the table isn't registered&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with ArcSDE.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message indicates that layer registration is attempting to add or alter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the rowid column, which makes me think that the column isn't NOT NULL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You really ought to specify coordinate reference parameters (-R or -x/-G) and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;an envelope (-E) with the register operation, instead of allowing ArcSDE to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;choose values which may be incompatible with your data.&amp;nbsp; If the features are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ever multi-part, you'll need '-e a+'.&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>Fri, 08 Oct 2010 19:32:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157961#M8845</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-10-08T19:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Spatial View in 9.3.1 with SQL2008 using MSSQL Spatial Geometry</title>
      <link>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157962#M8846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the table (parcels) on which you are trying to create your view already registered with ArcSDE and/or the geodatabase?&amp;nbsp; For example, is "parcels" a feature class you created in ArcGIS, or is it a spatial table you created in SQL Server using SQL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Kim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 17:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/creating-spatial-view-in-9-3-1-with-sql2008-using/m-p/157962#M8846</guid>
      <dc:creator>KimPeter</dc:creator>
      <dc:date>2010-10-13T17:35:17Z</dc:date>
    </item>
  </channel>
</rss>

