Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
top

...

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
languagepowershell
Encrypt=true; ODER TrustServerCertificate=true

...

Code Block
languagepowershell
...
Pooling=True; <!--Standard ist false-->
Min Pool MinPoolSizeSize=128; <!--Standard ist 0-->
Max Pool MaxPoolSizeSize=2048; <!--Standard ist 100-->
MultipleActiveResultSets=True";

Die Zahlen sind Beispielhaft und sollten je nach Nutzung von Massenoperationen und Anwenderzahl angepasst werden.

Hinweis: Die Schreibweise der Parameter wird nicht von jedem System gleichermaßen akzeptiert.