I am getting the error detailed in the screenshot below when running ogr2ogr. The command used worked on my other computer. I am wondering if this is an error that is triggering because I do not have proper permissions.
One last detail: the database I am uploading to exists.
I just had this error and did the following until it worked.
Mine was a fresh developer version installation on a new laptop. I needed to
enable TCP/IP
connection withSQL Server Configuration Manager
Check I can
telnet localhost 1433
. If screen goes blank it means you connected and it's working.I'd also idiotically got the
SA
password wrong. It was still telling me that it could notcreate the database
although it was just wrong password. I logged into SQL server withWindows Authentication
and reset theSA
password to the one I was using the connection string.My command was:
ogr2ogr -overwrite -progress -f MSSQLSpatial -s_srs epsg:27700 -t_srs epsg:4326 "MSSQL:driver=ODBC Driver 17 for SQL Server;SERVER=localhost;timeout=0;Database=importer;UID=xxx;PWD=xxx" opname_gb.gpkg -FieldTypeToString All -nln opname_gb