Skip to content

Change pyodbc connection from using args to using string#67

Merged
JonathanZhu11 merged 1 commit into
masterfrom
JonathanZhu11/FixConnection
May 29, 2020
Merged

Change pyodbc connection from using args to using string#67
JonathanZhu11 merged 1 commit into
masterfrom
JonathanZhu11/FixConnection

Conversation

@JonathanZhu11

Copy link
Copy Markdown
Contributor

pyodbc connection originally used args for connection.

With SQL Server driver, empty uid and pwd worked as Trusted_Connection, but with ODBC Driver 17 empty uid and pwd is just empty and fails. There is an arg trusted_connection instead.

By using a string, we circumvent this issue.

@JonathanZhu11 JonathanZhu11 merged commit 57c0009 into master May 29, 2020
@JonathanZhu11 JonathanZhu11 deleted the JonathanZhu11/FixConnection branch March 15, 2021 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant