<div dir="ltr">Hi,<div><br></div><div>As a part of a project I need to load quite big geojsons into SQL Server and I am using ogr2ogr to do so.</div><div><br></div><div>Here is an example command I am using:</div><div><br></div><div>ogr2ogr -f MSSQLSpatial "MSSQL:server=xxx;database=xxx;UID=xxx;PWD=xxx;DRIVER={ODBC Driver 17 for SQL Server}" -append --config SPATIAL_INDEX NO --config MSSQLSPATIAL_USE_BCP TRUE --config MSSQLSPATIAL_BCP_SIZE 10000 --config MSSQLSPATIAL_USE_GEOMETRY_COLUMNS NO -nln INM.nv_lv_ohline -nlt GEOMETRY -t_srs EPSG:27700 -s_srs EPSG:4326 -skipfailures -splitlistfields $DATA/data.json<br></div><div><br></div><div>I found that it is very slow and I have been checking the SQL Server profiler (as suggested already in this thread: <a href="https://lists.osgeo.org/pipermail/gdal-dev/2018-May/048520.html" style="font-family:Calibri,sans-serif;font-size:11pt;color:rgb(5,99,193)">https://lists.osgeo.org/pipermail/gdal-dev/2018-May/048520.html</a>) and I can confirm that it is trying to insert every record one-by-one, hence the slowness. </div><div><br></div><div>What I can't get to understand is how to point gdal to my sql server installation.</div><div><br></div><div>SQL Server version: 2016</div><div>GDAL: 3.0.4</div><div><br></div><div>Thanks and regards,</div><div><br></div><div>Hector Muro</div></div>