| author | dlevy-msft-sql |
|---|---|
| ms.author | dlevy |
| ms.service | sql |
| ms.topic | include |
| ms.date | 06/22/2026 |
| ai-usage | ai-assisted |
Caution
Use TrustServerCertificate=yes only for local development with self-signed certificates. Don't use it in production. It disables certificate chain validation and increases adversary-in-the-middle risk. Install a trusted certificate on the server and connect with TrustServerCertificate=no.