Skip to content

Honor login encryption options for Relog DSN that imports Perfmon - #555

Open
JosephPilov-MSFT (PiJoCoder) wants to merge 2 commits into
masterfrom
RelogEncryptConnection_pijocoder
Open

Honor login encryption options for Relog DSN that imports Perfmon #555
JosephPilov-MSFT (PiJoCoder) wants to merge 2 commits into
masterfrom
RelogEncryptConnection_pijocoder

Conversation

@PiJoCoder

Copy link
Copy Markdown
Collaborator

No description provided.

Configure the ODBC DSN used by relog.exe to respect the Encrypt and
Trust Server Certificate options the user selects when connecting
SqlNexus to SQL Server, and modernize DSN driver selection.

Changes:
- BLGImporter: read Encrypt/TrustServerCertificate from the connection
  string and propagate them into the DSN so relog negotiates the same
  transport security as the rest of the app.
- DSNCreator: append Encrypt and TrustServerCertificate keywords; try
  modern drivers first (ODBC Driver 18 -> 17 -> legacy "SQL Server")
  with logging and graceful fallback.
- Extract BuildDsnSettings() as a testable helper (P/Invoke stays out
  of unit tests).
- Rename DSN from "Nexus" to "SQLNexusDSN" via a shared constant so the
  registration and relog "-o SQL:<DSN>!<db>" argument stay in sync.
- Add DSNCreatorTests (6 MSTest cases) and reference PerfmonImporter
  from the unit test project.
@PiJoCoder JosephPilov-MSFT (PiJoCoder) changed the title Honor login encryption options for Perfmon relog DSN Honor login encryption options for Relog DSN that imports Perfmon Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate Relog connection details to see if it can support encryption

1 participant