-
Notifications
You must be signed in to change notification settings - Fork 85
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
Can't connect to MS SQL from Windows #267
Comments
What you're doing appears correct, @AllanLeanderRostockHansen , but it would really help to see the error message you are getting. |
Sorry, I've updated the original post |
It looks like you're using a Windows username (i.e. "domain\user") to log into SQL Server. Not sure how this is working with pymsql, but you may want to try adding "Trusted_connection=yes" to your connection string (and not use user/password), or alternatively use SQL Server authentication. Ref: https://stackoverflow.com/a/37702329/2777612 Also, I believe you'll get the same behaviour from all those drivers you've tried, but I would definitely use the latest driver "ODBC Driver 17 for SQL Server" if you can. The others are very old now. |
The more modern 2017 driver doesn't change the outcome:
Using
|
I can't connect to a MS SQL Server instance using Turbodbc using Python 3.7.6.
I installed Turbodbc using conda, as demonstrated in the documentation/Geting started.
I have tested the connection parameters with pymssql, which are able to connect and retrieve data.
So, this works:
But this doesn't – I've tried all three drivers, and with the port argument included and omitted, as well as changing from
UID,
PWD
touser
,password
:Any suggestion to resolve this is highly appreciated!
This is the error message
The text was updated successfully, but these errors were encountered: