<div dir="ltr"><div>Hi All;</div><div>I am having trouble bringing a geospatial  sql view into qgis using the add  mssql  server layer dialogue.<br></div><div><br></div>I have a geospatial view that was created from two tables in a separate database.<div>One of the two tables has a geospatial field. This table can be brought into qgis without issues using the add mssql server layer dialogue</div><div>The combined view can be viewed spatially in server management studio with no errors.</div><div>I can see the view in the mssql server layer dialogue and it displays as a spatial table.</div><div>However when I try to filter the layer nothing happens, ie the filter dialogue does not appear.</div><div>When i try to add the layer without filtering i get the following error:</div><div><p style="margin:0px;white-space:pre-wrap">dbname='dbase' service='dbase' user='user' password='pasword' srid=28351 type=Point disableInvalidGeometryHandling='1' primaryKeyInGeometryColumns='0' table="dbo"."view" (SP_geometry) is an invalid layer - not loaded</p></div><div>I connect to the sql server using sql server authentication, which I have checked the password etc for several times and is correct.</div><div>I can also open the view via the add vector layer - database odbc route as a non spatial table.</div><div><br></div><div>I assume that I am missing a step to make the geospatial aspect of the view compatible with qgis?</div><div><br></div><div>Any assistance would be greatly appreciated.</div><div>sincerely</div><div>Damien</div><div><br></div></div>