<div dir="ltr"><div>Michael and list,</div><div><br></div><div>I don't use Microsoft SQL Server, so not speaking from experience here but this doesn't help?</div><div><br></div><div><a href="https://gdal.org/drivers/vector/mssqlspatial.html">https://gdal.org/drivers/vector/mssqlspatial.html</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 20, 2022 at 1:40 AM Reetz, Michael (NLPV) via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-8191584125249358314">





<div lang="DE">
<div class="m_-3707241400137509342WordSection1">
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">Hello all,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US">it seems that nobody has an idea. I’ve found some tips (some of them really old) to install the latest ODBC-Driver from Microsoft or the SQL Server Native Client. First is installed,
 second is not supported in SQL Server 2019. Another tip was to rename or delete ogr_MSSPATIAL.dll but this dll isn’t installed on my system (obviously not part of the QGIS installation package).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US">So, it looks as if ogr2ogr is not really helpful for me and I have to look for another tool.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US">Best regard<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US">Michael<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span>Von:</span></b><span> Qgis-user <<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>>
<b>Im Auftrag von </b>Reetz, Michael (NLPV) via Qgis-user<br>
<b>Gesendet:</b> Mittwoch, 19. Oktober 2022 12:50<br>
<b>An:</b> <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a><br>
<b>Betreff:</b> [Qgis-user] ogr2ogr doesn't connect to MS SQL Server<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:1pt solid rgb(0,51,51);padding:2pt">
<p style="line-height:10pt;background:rgb(213,234,255)"><span style="font-size:10pt;font-family:"Time new Roman",serif;color:red">ACHTUNG!!</span><span style="font-size:10pt;font-family:"Time new Roman",serif"> Diese E-Mail erreicht Sie von einem Absender außerhalb
 der niedersächsischen Landesverwaltungs-Infrastruktur mit TLS-Verschlüsselung. Bitte klicken Sie auf keine Links oder öffnen Sie keine E-Mail-Anhänge, falls Sie den Absender nicht kennen und nicht wissen, ob der Inhalt sicher ist.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">Dear QGIS users,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US">we are using MS SQL Server 2019 as basis for Geoserver and GIS software. There are a lot of tables that have attributes of the types geometry and/or geography. I can load these
 tables into QGIS (3.22.8) projects without any problems.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US">Now I’m asked to add an geography attribute to one table that has already an geometry attribute and populate it with coordinates by transforming the geometry values. I’ve found
 code how to do this with ogr2ogr but when I run it I receive the error message “Unable to open datasource ‘MSSQL:server=<my server IP>;database=<my database>;trusted_connection=yes;' with the following drivers”. MSSQLSpatial is not listed but should be part
 of the ODBC driver. Any idea? Which driver QGIS is using?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US">Best regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif">Michael<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Tahoma",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:"Tahoma",sans-serif">*****************************************
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:"Tahoma",sans-serif">Michael Reetz<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:9pt;font-family:"Tahoma",sans-serif">Datenbanken und Anwendungsentwicklung<br>
Nationalpark-Verwaltung Niedersächsisches Wattenmeer <br>
Virchowstr. 1 | 26382 Wilhelmshaven <br>
Tel.: +49 (0) 4421 911 291 <br>
e-mail: <a href="mailto:michael.reetz@nlpv-wattenmeer.niedersachsen.de" target="_blank"><span style="color:blue">michael.reetz@nlpvw.niedersachsen.de</span></a>
<br>
Web: <a href="https://www./" target="_blank"><span style="color:blue">https://www.</span></a><u><span style="color:blue"><a href="http://nationalpark-wattenmeer.de" target="_blank">nationalpark-wattenmeer.de</a></span></u>
<u></u><u></u></span></p>
<p class="MsoNormal"><span><img style="width: 2.2812in; height: 1.2291in;" id="m_-3707241400137509342Grafik_x0020_1" src="cid:183f5e901944cff311" width="219" height="118" border="0"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>

_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div>