Post

Connecting to a SQL Server database in Streamlit Community Cloud

At the time of writing, the version of the ODBC Driver for SQL Server available in Streamlit Community Cloud is version 17.

This is pre-installed in Streamlit Community Cloud so it isn’t necessary to include a packages.txt file with msodbcsql17 in projects.

Including pyodbc in requirements.txt is all that’s required.

This post is licensed under CC BY 4.0 by the author.