<?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: Spatial Views with Attachments (SQL Server Express 2008 R2) in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/spatial-views-with-attachments-sql-server-express/m-p/283900#M1817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attachments are enabled on a feature class, but aren't actually stored in the feature class. There is a relationship class to a table, where the attachments for each feature get stored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-attributes/enabling-attachments-on-a-feature-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-attributes/enabling-attachments-on-a-feature-class.htm"&gt;Enabling attachments—ArcGIS Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a view that would preserve attachments (i.e. create a join that adds the BLOB fields from the attachments table to the view), but unfortunately that was not successful.&amp;nbsp;Additionally, it is not possible to create a relationship class from a view to the original attachments table because views aren't registered with the geodatabase&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/views-in-geodatabase.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/views-in-geodatabase.htm"&gt;Views in an enterprise geodatabase—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, attachments are designed to be enabled on feature classes not views.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2016 17:09:18 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-11-17T17:09:18Z</dc:date>
    <item>
      <title>Spatial Views with Attachments (SQL Server Express 2008 R2)</title>
      <link>https://community.esri.com/t5/developers-questions/spatial-views-with-attachments-sql-server-express/m-p/283898#M1815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've successfully created a spatial view of a feature class stored in one of the project's GDBs. However, this particular feature class has attachments and I don't particularly want to lose that information (in fact, we can't! It's needed for the project). My initial question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can you even maintain attachments using spatial views (so, for example, when you use the Info tool on a polygon from the view you can still see its attachments)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's possible, how? I've tried to create a view running the following SQL and the view returns 0 results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;CREATE VIEW BridgeDecks
 AS
 SELECT
&amp;nbsp; br.OBJECTID,
&amp;nbsp; br.STR_NAME,
&amp;nbsp; br.Shape,
&amp;nbsp; brAtt.REL_OBJECTID,
&amp;nbsp; brAtt.ATTACHMENTID,
&amp;nbsp; brAtt.ATT_NAME,
&amp;nbsp; brAtt.CONTENT_TYPE,
&amp;nbsp; brAtt.DATA,
&amp;nbsp; brAtt.DATA_SIZE
&amp;nbsp; 
 FROM ProjName_Assets.dbo.ProjName_BRIDGEDECKS_MASTER AS br,
&amp;nbsp; ProjName_Assets.dbo.ProjName_BRIDGEDECKS__ATTACH AS brAtt
&amp;nbsp; 
 WHERE br.OBJECTID = brAtt.REL_OBJECTID
 AND br.OBJECTID IS NOT NULL;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers would be just wonderful! Some notes for clarification...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProjName_BridgeDecks_Master is the feature class&lt;/P&gt;&lt;P&gt;ProjName_BridgeDecks__Attach is the table&lt;/P&gt;&lt;P&gt;ProjName_BridgeDecks__AttachRel is the relationship class that appears in&amp;nbsp; ArcCatalog, though it's not used in this sql&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/spatial-views-with-attachments-sql-server-express/m-p/283898#M1815</guid>
      <dc:creator>JennB</dc:creator>
      <dc:date>2021-12-11T13:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Views with Attachments (SQL Server Express 2008 R2)</title>
      <link>https://community.esri.com/t5/developers-questions/spatial-views-with-attachments-sql-server-express/m-p/283899#M1816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you able to figure this out? I'd like to know the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 15:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/spatial-views-with-attachments-sql-server-express/m-p/283899#M1816</guid>
      <dc:creator>CarlosKrefft</dc:creator>
      <dc:date>2016-11-02T15:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial Views with Attachments (SQL Server Express 2008 R2)</title>
      <link>https://community.esri.com/t5/developers-questions/spatial-views-with-attachments-sql-server-express/m-p/283900#M1817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attachments are enabled on a feature class, but aren't actually stored in the feature class. There is a relationship class to a table, where the attachments for each feature get stored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-attributes/enabling-attachments-on-a-feature-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-attributes/enabling-attachments-on-a-feature-class.htm"&gt;Enabling attachments—ArcGIS Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a view that would preserve attachments (i.e. create a join that adds the BLOB fields from the attachments table to the view), but unfortunately that was not successful.&amp;nbsp;Additionally, it is not possible to create a relationship class from a view to the original attachments table because views aren't registered with the geodatabase&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/views-in-geodatabase.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/views-in-geodatabase.htm"&gt;Views in an enterprise geodatabase—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, attachments are designed to be enabled on feature classes not views.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 17:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/spatial-views-with-attachments-sql-server-express/m-p/283900#M1817</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-11-17T17:09:18Z</dc:date>
    </item>
  </channel>
</rss>

