title: SQL Server spatial and linked servers
body: <p>I have a SQL Server instance that I've added a linked server to another SQL instance. The table I'm accessing on the linked server contains spatial types. When I try to query the table I receive an error: </p>
  
  <blockquote>
    <p>Objects exposing columns with CLR types are not allowed in distributed
    queries. Please use a pass-through query to access remote object.</p>
  </blockquote>
  
  <p>If I use <code>OPENQUERY</code> with the same query I get another error: </p>
  
  <blockquote>
    <p>A severe error occurred on the current command.  The results, if any,
    should be discarded.</p>
  </blockquote>
  
  <p>Is there any way to query tables that contain spatial types via linked servers?</p>