diff --git a/docs/website/docs/dlt-ecosystem/verified-sources/sql_database/troubleshooting.md b/docs/website/docs/dlt-ecosystem/verified-sources/sql_database/troubleshooting.md index d0930716d8..3a93cf0d22 100644 --- a/docs/website/docs/dlt-ecosystem/verified-sources/sql_database/troubleshooting.md +++ b/docs/website/docs/dlt-ecosystem/verified-sources/sql_database/troubleshooting.md @@ -56,6 +56,16 @@ sources.sql_database.credentials="mssql+pyodbc://loader:loader@localhost/dlt_dat sources.sql_database.credentials="mssql+pyodbc://loader:loader@localhost/dlt_data?LongAsMax=yes&driver=ODBC+Driver 17+for+SQL+Server" ``` +**To fix MS SQL Server connection issues with ConnectorX**: + +Some users have reported issues with MS SQL Server and Connector X. The problems are not caused by dlt, but by how connections are made. A big thanks to [Mark-James M](https://github.com/markjamesm) for suggesting a solution. + +To fix connection issues with ConnectorX and MS SQL Server, include both `Encrypt=yes` and `encrypt=true` in your connection string: +```py +sources.sql_database.credentials="mssql://user:password@server:1433/database?driver=ODBC+Driver+17+for+SQL+Server&Encrypt=yes&encrypt=true" +``` +This approach can help resolve connection-related issues. + ## Troubleshooting backends ### Notes on specific databases