-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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 Invalid layer #28427
Comments
Author Name: Giovanni Manghi (@gioman) Does it works as expected on 2.18?
|
Author Name: Zannis Kostalas (Zannis Kostalas) Giovanni Manghi wrote:
QGIS 2.18.15 loads the layers properly |
Author Name: Giovanni Manghi (@gioman)
|
Is this still an issue with latest master? |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. |
Author Name: Zannis Kostalas (Zannis Kostalas)
Original Redmine Issue: 20607
Affected QGIS version: 3.4.1
Redmine category:data_provider/mssql
The case:
On the same server, created an exact copy of a polygon table on a different db
SELECT * INTO db2.dbo.geom_table_copy FROM db1.dbo.geom_table
While QGIS was reading the original table normally, when attempting to insert the copied table I would get
"WARNING dbname='db2' host=www.myhost.com user='user' password='pwd' srid=4326 type=Polygon disableInvalidGeometryHandling='0' table="dbo"."geom_table_copy" (POLYGON) sql= is an invalid layer - not loaded"
The problem got solved when I populated the "sql" field on the table selection with a random, valid query, loaded the table and then deleted the query. As it seems, for some reason, when creating the connection to the 2nd db, that field, enev though appearing blank, was populated in the background with an invalid expression (that's my best guess at least)
Once you know how to fix it it's easy but this was bugging me for close to 6 months now and no solution exists on the internet
The text was updated successfully, but these errors were encountered: