Streamlit Application connection to Microsoft SQL Server

Hi, I’m following the example of Connect Streamlit to Microsoft SQL Server.

I can access my SQL Server remotely by passing the IP address to server name but I keep getting this error below with my deployed app.

pyodbc.OperationalError: (‘HYT00’, ‘[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)’)

Could someone help me with this?

Hi @JacobSES, thanks for posting! Have you checked out these threads on similar errors?