<?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: Register SQL Spatial View using Esri Binary in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264081#M15150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With feature classes that use GEOMETRY (SQL Server) as their shape, can those views span databases and use the sdetable -o register command to store the view within a different geodatabase than the feature class?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri no longer supports the last version that permitted cross-database queries.&amp;nbsp; There's a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;significant performance cost, so their use is not recommended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also - what type of geometry is 'better', SDEBINARY or GEOMETRY for SQL Server?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer is different by use case and even implementation of use case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 00:21:05 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2014-04-29T00:21:05Z</dc:date>
    <item>
      <title>Register SQL Spatial View using Esri Binary</title>
      <link>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264078#M15147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to register a SQL spatial view using a feature class that has Esri binary as its shape?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried sdetable -o register and sdetable -o create_view but have been unsuccessful.&amp;nbsp; This could be because of my own lack of knowledge with the command line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE = 10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DBMS = SQL Server 2008 R2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature class name = lcbase.dbo.Parcels&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joined table name = gis.dbo.vw_parcels&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to create the view in a geodatabase called 'gisstaging'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the create_view command line prompt I've tried with an error (Error -162, Invalid Database Name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;sdetable -o create_view -T VWTest -t lcbase.dbo.PARCELS,gis.dbo.vw_parcelsweb -c lcbase.dbo.PARCELS.SHAPE,lcbase.dbo.PARCELS.GPNNUM,gis.dbo.vw_parcelsweb.GPN -w"lcbase.dbo.PARCELS.GPNNUM = gis.dbo.vw_parcelsweb.GPN" -i sde:sqlserver:lcgissql -D gisstaging -u **** -p ****&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the register command line prompt I've tried after creating the view in SSMS with an error (Error -144, Wrong Column Type, SE_table_get_shape_type failed) --- I'm assuming this is due to the Esri binary shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;sdelayer -o register -l gisstaging.dbo.ParcelsSearch,Shape -e a -t geometry -i sde:sqlserver:lcgissql -s lcgissql -D gisstaging -u **** -p ****&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how I can create a spatial view using an Esri binary feature class...?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 20:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264078#M15147</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2014-04-28T20:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Register SQL Spatial View using Esri Binary</title>
      <link>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264079#M15148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;cannot&lt;/SPAN&gt;&lt;SPAN&gt; register an existing view on an SDEBINARY layer -- 'sdelayer -o register'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is only used with native (or ST) geometry storage. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'sdetable -o create_view' utility is only used to create &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; views.&amp;nbsp; It does not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;support views that span databases.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not formally supported, but the work-around is to create a nominal table (with the same &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;columns in the same order) in the same database as the layer, then alter the view after it has &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;been created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264079#M15148</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-28T21:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Register SQL Spatial View using Esri Binary</title>
      <link>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264080#M15149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the info!&amp;nbsp; Once the SDEBINARY feature class was in the same geodatabase as the view, using the sdetable -o create view worked and I was able to see the view as a 'feature' in ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With feature classes that use GEOMETRY (SQL Server) as their shape, can those views span databases and use the sdetable -o register command to store the view within a different geodatabase than the feature class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also - what type of geometry is 'better', SDEBINARY or GEOMETRY for SQL Server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the knowledge, been trying to figure what the issue was all day!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2014 21:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264080#M15149</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2014-04-28T21:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Register SQL Spatial View using Esri Binary</title>
      <link>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264081#M15150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With feature classes that use GEOMETRY (SQL Server) as their shape, can those views span databases and use the sdetable -o register command to store the view within a different geodatabase than the feature class?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri no longer supports the last version that permitted cross-database queries.&amp;nbsp; There's a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;significant performance cost, so their use is not recommended.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also - what type of geometry is 'better', SDEBINARY or GEOMETRY for SQL Server?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer is different by use case and even implementation of use case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 00:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/register-sql-spatial-view-using-esri-binary/m-p/264081#M15150</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-04-29T00:21:05Z</dc:date>
    </item>
  </channel>
</rss>

