0

I'm using python with sqlalchemy for access my sqlserver database (azure).

I want to access the data with charset=utf8 and with driver also.

This is my conenction string:

connect="mssql+pyodbc_mssql://<user>:<pass>@server/database?charset=utf8?driver=SQL Server Native Client 11.0"

So when the charset is the first - he doesn't take the driver and I can't connect.

And when the driver is first - I have problems with the unicode.

I tried to insert ; or , between them instead of ? but is doesn't work...

What is the right way to config multiple parameters in the connection string?

Please don't suggest to replace driver.

Thank you.

1
  • Is using & solved your problem (instead of ; or ,) Commented Jan 13, 2020 at 9:31

1 Answer 1

2

The separator of parameters should be using & as in:

connect="mssql+pyodbc_mssql://<user>:<pass>@server/database?charset=utf8&driver=SQL Server Native Client 11.0"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.