Home / Companies / Zapier / Blog / Post Details
Content Deep Dive

API Quirks: SQLAlchemy, MSSQL, and plus sign encoding

Blog post from Zapier

Post Details
Company
Date Published
Author
Mike Knoop
Word Count
404
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

We use SQLAlchemy at Zapier to handle external database connections to various databases such as MySQL, MSSQL, PostgreSQL. Recently, we encountered a problem with our MSSQL connector where using a username or password with a plus sign (+) caused connection issues due to double URL encoding of the odbc_connect parameter in the SQLAlchemy connection string. The issue was resolved by properly URL encoding the odbc_connect parameter twice to avoid decoding errors and ensure correct password transmission. To connect to MSSQL with SQLAlchemy, we use a special connection string that includes extra variables encoded into the odbc_connect parameter. For example, our working code generates a mssql+pyodbc SQLAlchemy connection using the urllib.quote_plus function to URL encode the odbc_connect parameter twice.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.