Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mssql precision #6

Open
landam opened this issue May 13, 2018 · 0 comments
Open

mssql precision #6

landam opened this issue May 13, 2018 · 0 comments

Comments

@landam
Copy link

landam commented May 13, 2018

Command

C:\OSGeo4W64\apps\gdal-dev\bin\ogr2ogr -f MSSQLSpatial -overwrite -oo
FILE_FIELD=YES -oo SUPPRESS_GEOMETRY=YES --config GDAL_DRIVER_PATH
C:\OSGeo4W64\apps\gdal-dev\bin\gdalplugins --config
OGR_VFK_DB_OVERWRITE YES --config MSSQLSPATIAL_LIST_ALL_TABLES YES
--config MSSQLSPATIAL_USE_BCP YES --config MSSQLSPATIAL_BCP_SIZE 1000
%connstr% %file%

fails with

ERROR 1: SQL Error SQLState=22003, NativeError=0, Msg=[Microsoft][SQL Server Nat
ive Client 11.0]Numeric value out of range

ERROR 1: Unable to write feature 1 from layer OPSUB.
ERROR 1: Terminating translation prematurely after failed
translation of layer OPSUB (use -skipfailures to skip errors)

With -lco PRECISION=NO it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant