Skip to content

Commit

Permalink
Added info to troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
dat-a-man committed Aug 31, 2024
1 parent 1723faa commit 23e87bb
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,19 @@ sources.sql_database.credentials="mssql+pyodbc://loader:loader@localhost/dlt_dat
sources.sql_database.credentials="mssql+pyodbc://loader:loader@localhost/dlt_data?TrustServerCertificate=yes&driver=ODBC+Driver+17+for+SQL+Server"
```

***To use long strings (>8k) and avoid collation errors**:
**To use long strings (>8k) and avoid collation errors**:
```toml
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**:

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.

## Customizations
### Transform the data in Python before it is loaded

Expand Down

0 comments on commit 23e87bb

Please sign in to comment.