Hi James
Thanks for getting back to me.
I'using Wien too.
The database connection is established. I can add existing geometry layers from 
the DB to the qgis project. I can also add new layers to the DB (e.g. A shape). 
So no fundamental problem with the DB.

My problem is the following.
I have defined a table in the DB without geometries, just numeric data. I can 
see it in the qgis browser but when i try to add it to my project i get an 
error saying that it is missing a crs. So i guess there is some meta info 
missing somewhere, but i wonder where and whether it has something to do with 
the metadata table 'geometry_colums' required for spatial layers. I need to 
look up the exact error message when I'm back in the office.

Hope this is a little clearer now :-)

Regards.
Peter
--
Meier und Partner AG
Freiestrasse 26<x-apple-data-detectors://1/0>
8570 Weinfelden<x-apple-data-detectors://1/0>
www.meierpartner.ch<http://www.meierpartner.ch/>
T +41 71 626 5115<tel:+41%2071%20626%205115>

Am 01.05.2015 um 02:34 schrieb "James Wood" 
<[email protected]<mailto:[email protected]>>:

Hey Peter. Did you get a response to your question? I may not be understanding 
exactly what you are trying to do, but if you go ahead and add your MSSQL 
instance and connect to the database, you will be presented with both spatial 
and non -spatial tables that you can add into the map.

So, (not to patronize), if you go to Layer > Add Layer > Add MSSQL Spatial 
Layer, that will present a dialog where you can choose your instance from the 
drop down or create a new connection. The list of all available table objects 
will appear once you hit connect. I'm using 2.8 Wien.

HTH and I haven't missed your question entirely.

James
Sent from my iPhone

On Apr 30, 2015, at 13:55, Peter Schürch 
<[email protected]<mailto:[email protected]>> wrote:

Hi
Does anybody know how to add a non-geometric table from an mssql database to a 
qgis project?
Do I need to add it in the table "geometry_columns"? If yes what would be the 
appropriate attribute values there?

Thanks
Peter Schürch
--
Meier und Partner AG
Freiestrasse 26<x-apple-data-detectors://1/0>
8570 Weinfelden<x-apple-data-detectors://1/0>
www.meierpartner.ch<http://www.meierpartner.ch/>
T +41 71 626 5115<tel:+41%2071%20626%205115>
_______________________________________________
Qgis-user mailing list
[email protected]<mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to