<?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 How to create query layer based upon SQL Server Spatial and display it on map cntrl in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-query-layer-based-upon-sql-server/m-p/715446#M19074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am stumped.&amp;nbsp; I have a sql server database, and I have a table with valid geometry fields.&amp;nbsp;&amp;nbsp; I am able to define the ISqlWorkspace, and build the IQueryDescription&amp;nbsp; by doing a "select * from maptable" (and I have tried specifiying manually the fields, no change.&amp;nbsp;&amp;nbsp; I am able to retrieve the column names and values via the SqlWorkspace.GetColumns() call.&amp;nbsp;&amp;nbsp; But when I try to take this queryDescription and SqlWorkspace, I am unable to cast it to a featureclass.&amp;nbsp; Is there any samples or tutorials or ideas on how to make the MapControl to display a table with Sql Server 2008 R2 Spatial's geometry column in c# or vb.net?&amp;nbsp;&amp;nbsp; Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 18:57:12 GMT</pubDate>
    <dc:creator>StevenPaplanus</dc:creator>
    <dc:date>2012-05-11T18:57:12Z</dc:date>
    <item>
      <title>How to create query layer based upon SQL Server Spatial and display it on map cntrl</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-query-layer-based-upon-sql-server/m-p/715446#M19074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am stumped.&amp;nbsp; I have a sql server database, and I have a table with valid geometry fields.&amp;nbsp;&amp;nbsp; I am able to define the ISqlWorkspace, and build the IQueryDescription&amp;nbsp; by doing a "select * from maptable" (and I have tried specifiying manually the fields, no change.&amp;nbsp;&amp;nbsp; I am able to retrieve the column names and values via the SqlWorkspace.GetColumns() call.&amp;nbsp;&amp;nbsp; But when I try to take this queryDescription and SqlWorkspace, I am unable to cast it to a featureclass.&amp;nbsp; Is there any samples or tutorials or ideas on how to make the MapControl to display a table with Sql Server 2008 R2 Spatial's geometry column in c# or vb.net?&amp;nbsp;&amp;nbsp; Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 18:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-create-query-layer-based-upon-sql-server/m-p/715446#M19074</guid>
      <dc:creator>StevenPaplanus</dc:creator>
      <dc:date>2012-05-11T18:57:12Z</dc:date>
    </item>
  </channel>
</rss>

