A Serilog sink that writes events to Microsoft SQL Server and Azure SQL
Microsoft.Data.SqlClient
was upgraded to >4.0.0 which introduces a breaking change regarding connection strings. If your SQL Server does not use encryption you have to explicitly specify this in the connection string by adding Encrypt=False
. Otherwise the connection will fail with a SqlException
. Refer to the SqlClient documentation for details.