Skip to content
Documentation
Updated 3 minutes to read
Markdown

The SqlPackageParams System Parameter sets the connection security options that Nodinite passes to SqlPackage.exe (DacFx) when it deploys Log Databases: whether the connection is encrypted, and whether the SQL Server certificate is trusted without validation. The Logging Service reads it when it creates a new Log Database; the path to SqlPackage.exe comes from SqlPackageExecutable.

Property Value
Key SqlPackageParams
Data type json
Default {"TargetTrustServerCertificate":true,"TargetEncryptConnection":true,"SourceTrustServerCertificate":false,"SourceEncryptConnection":true}
Read by Logging Service
Takes effect Within about 15 seconds; no restart needed
Status ✅ Active
Since Nodinite 5.4.1.26

When the Logging Service creates a new Log Database, it runs SqlPackage.exe and adds one command-line option per property in this parameter, for example /TargetEncryptConnection:true /TargetTrustServerCertificate:true. The Target options apply to the SQL Server instance that receives the Log Database. The Source options apply when SqlPackage.exe reads from a source database connection instead of a .dacpac file. The Update Log Database guide generates SqlPackage.exe commands with the same kind of options.

DacFx 161 and later (built on Microsoft.Data.SqlClient) encrypt connections by default. With a self-signed SQL Server certificate, a connection then fails unless the certificate is trusted, which is why TargetTrustServerCertificate defaults to true. Use DacFx 161 or later; see SqlPackageExecutable.

A JSON object; each property maps to the SqlPackage.exe option with the same name.

Property Type Default Meaning
TargetTrustServerCertificate boolean true Trust the target SQL Server's certificate without validating it. Set false when the SQL Server has a certificate from a trusted CA
TargetEncryptConnection boolean true Encrypt the connection to the target SQL Server. Keep true
SourceTrustServerCertificate boolean false Trust the source SQL Server's certificate without validating it
SourceEncryptConnection boolean true Encrypt the connection to the source SQL Server. Keep true
{"TargetTrustServerCertificate":true,"TargetEncryptConnection":true,"SourceTrustServerCertificate":false,"SourceEncryptConnection":true}
  • Keep the default unless your security policy requires certificate validation.
  • Production with a CA-signed SQL Server certificate: set TargetTrustServerCertificate to false, so the certificate is validated. The certificate must then match the server name in SqlServer and chain to a trusted root on the Nodinite application server.
  • Self-signed certificate (common in test): keep TargetTrustServerCertificate = true; with false, Log Database creation fails with a certificate trust error.
  • Don't turn encryption off. Setting TargetEncryptConnection or SourceEncryptConnection to false sends the deployment unencrypted.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...