-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error connecting to MSSQL #72
Comments
Hi @mccarthyryanc -- I haven't used MSSQL before so apologies if I'm incorrect, but I'm pretty sure what's going on here is that QGIS depends on Qt for the MSSQL support, and our build of Qt doesn't generate this component. Specifically, Qt uses the Open Database Connectivity (ODBC) driver for MSSQL connections which isn't in our Linux/Mac builds but is included on Windows. According to the Qt docs, this driver is built by default on Windows but requires a 3rd party implementation of ODBC on Linux/Mac. They recommend @ocefpaf any thoughts on if enabling the ODBC SQL driver for Linux/Windows would be welcome in the Qt recipe (adds |
I believe it is OK. Do you want to send a PR to the |
Also, if the |
Thanks for the thoughts, @ocefpaf. Sounds like a plan. I should have some time to work on getting a PR to the Qt feedstock this weekend (assuming adding it in is straightforward...) |
Ping me if you need anything.
Nothing that is Qt related is straightforward :-( |
How true 😢... haven't made much headway beyond being able to build qt and have it fail the first test.
Can't get it to pass this test whether I modify the recipe to include |
@ceholden , it's been a while and I kind of lost track of this. Any chance you've had success in a separate recipe? |
@mccarthyryanc can you try with a newer version of QGIS? maybe that was fixed (or not...) |
@SrNetoChan as of QGIS 3.34.3 I'm still unable to connect to MSSQL databases. There's some work in the QGIS-Mac-Packager repo that might be helpful, but I don't really know anything about conda packaging. |
Seems like this is an issue for |
Hey! I'm also interested in this… have been any update? I can see that in the regular version of QGIS this is included, but not in the conda one… it's a pity. |
Issue:
Error when trying to connect to MSSQL database:
Steps to Reproduce:
Host
List Databases
andTest Connection
, both result in error.I tested the same host/creds using pymssql (freetds) from the QGIS python console and was able to connect and make queries.
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: