<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>I have been using ogr2ogr.exe v2.1.0 to import SHP files to MSSQL for several years, no problem.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>Recently installed GDAL 3.3.1 and this version of ogr2ogr no longer imports SHP, only creates empty table.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:18.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white'><span style='font-size:16.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>Steps to reproduce the problem.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>I have tried both versions on same machine - v2.1.0 works and v 3.31 does not<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>The command line for v2.1.0 is:<o:p></o:p></span></p><p class=MsoNormal style='background:white'><b><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:black;mso-fareast-language:EN-AU'>c:\OSGeo4w_2016</span></b><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:black;mso-fareast-language:EN-AU'>\bin\ogr2ogr.exe -overwrite -progress -f "MSSQLSpatial" -lco SCHEMA=QGIS "MSSQL:server=xxxx_17;database=DHLog;trusted_connection=yes" "d:\temp\FRO_ELs-MLs.shp" -nln QGIS.frome_els_mls</span><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;mso-fareast-language:EN-AU'><o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>The command line for v3.3.1 is same, other than using the new EXE<o:p></o:p></span></p><p class=MsoNormal style='background:white'><b><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:black;mso-fareast-language:EN-AU'>c:\OSGeo4w</span></b><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:black;mso-fareast-language:EN-AU'>\bin\ogr2ogr.exe -overwrite -progress -f "MSSQLSpatial" -lco SCHEMA=QGIS "MSSQL:server=xxxx_17;database=DHLog;trusted_connection=yes" "d:\temp\FRO_ELs-MLs.shp" -nln QGIS.frome_els_mls</span><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;mso-fareast-language:EN-AU'><o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>v2.1.0 imports the SHP just fine to MSSQL, but v 3.3.1 only creates the table and then no records<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>Attached is the SHP file and its ancillaries<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:18.0pt;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;background:white'><span style='font-size:16.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>Operating system<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292F;mso-fareast-language:EN-AU'>Win 10 Pro, 64 bit<o:p></o:p></span></p><p class=MsoNormal>With thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Luke B<o:p></o:p></p></div></body></html>