-
Notifications
You must be signed in to change notification settings - Fork 307
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
Adaptive Server Connection Failed on Windows pymssql >=2.2.8 #860
Comments
After some searching I solved the issue by setting tds_version to '7.0' as follows:
and everything works as normal again. |
nice |
This was referenced Feb 29, 2024
markus-leben
added a commit
to markus-leben/Robotframework-Database-Library
that referenced
this issue
May 1, 2024
…Manager Some database connection functions don't require all of dbapiModuleName, dbName, dbUsername... These functions also fail in some libraries if given a blank string on some libraries. By 'some libraries' here I mostly mean pymssql, but these changes should be invisible to any tests running with a fully db.cfg. Similarly, I passed **kwargs in from connect_to_database on connections to misc databases not in the existing if/elif cases. This was mostly to allow for passing in tds_version on pymssql (see this issue: pymssql/pymssql#860), but it would be useful for any misc database to be able to set up their connection using custom parameters. It may also be a good idea to pass kwargs in to each db_connection in that whole big if/else statement, but I wanted this to be minimally impactful to connection modules I don't know well enough to not break.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SQL Server ver. 12.0.2000.8
with pymssql versions <= 2.2.7 this works fine
using the local windows account authentication
however on pymssql versions >2.2.8 I get this instead:
The text was updated successfully, but these errors were encountered: