Anchor | ||||
---|---|---|---|---|
|
...
Breaking changes in Microsoft.Data.SqlClient 2.0
If the target server is configured to enforce encryption, then this version of the client requires the server certificate to be installed locally or enforce use of SSL for the database connection. Notice that Azure SQL Database is always configured to enforce encryption. So when using this version against Azure SQL Database (or any SQL Server enforcing encryption), you must at least add this setting to your connection string (to enforce use of SSL):
Code Block | ||
---|---|---|
| ||
TrustServerCertificate=true |
...