Hi all,
Not a QGIS question per se but I figured this would be the right forum to ask the question. I am trying to load a DBF file (no associated shape file) into SQL Server using ogr2ogr without success.
The command line I am using is (after a number of unsuccessful edits):
ogr2ogr -f "MSSQLSpatial" "MSSQL:Server=MyServer;Database=MyDatabase;trusted_connection=yes" "D:\PN_PLANNING_SCHEME.dbf "
The error message I get back is:
Any thoughts?
Cheers,
Barrett
Barrett Higman
GIS Officer
Alpine Shire Council
Great Alpine Road
PO Box 139
Bright Victoria 3741
Telephone: (03) 5755 0552
Mobile: 0439 368 438
Facsimile: (03) 5755 1811
Web: www.alpineshire.vic.gov.au
Hi Lawrie/Simon,
Thanks for your replies.
I had already tried both the -overwrite and -nln commands without success and I have full permissions on the database as I have successfully loaded many other types of formats into SQL Server. Simon , I will give your suggestion a go for future DBF files as this might be a solution. This time around I ended up using FME as they are not files that will change with any regularity so I don't need to set up a routine that can be repeated.
Thank you Lawrie for the code, it looks really interesting and I can see a number of applications where it might be useful to me.
Cheers,
Barrett
Barrett Higman
GIS Officer
Alpine Shire Council
Great Alpine Road
PO Box 139
Bright Victoria 3741
Telephone: (03) 5755 0552
Mobile: 0439 368 438
Facsimile: (03) 5755 1811
Web: www.alpineshire.vic.gov.au
--
You received this message because you are subscribed to the Google Groups "Australian QGIS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To post to this group, send an email to australian-qg...@googlegroups.com.
Visit this group at http://groups.google.com/group/australian-qgis-user-group?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
That's good to know. Thanks for that Luke.
Any thoughts?