Skip to content

Commit

Permalink
Added info to troubleshooting (#1773)
Browse files Browse the repository at this point in the history
* Added info to trouble shooting

* just to rerun tests

* Update docs/website/docs/dlt-ecosystem/verified-sources/sql_database/troubleshooting.md

---------

Co-authored-by: Alena Astrakhantseva <[email protected]>
  • Loading branch information
dat-a-man and AstrakhantsevaAA authored Oct 22, 2024
1 parent 9fdd1ee commit 058c09f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 058c09f

Please sign in to comment.