Execution Flow
Both sources can run in the same call — giving both
-SqlInstance and -PackagePath lets you compare deployed production packages against an on-disk backup/staging copy in one report. On SQL Server 2022+, the SSISDB connection pre-emptively sets TrustServerCertificate to handle self-signed certificates that would otherwise break the initial connection. ACE.OLEDB.12.0 connections are flagged as an Error (not just a warning) specifically for a 2025 target, since that provider is removed outright in that version.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| -SqlInstance | String | Optional | SQL Server instance to connect to for the SSISDB source. Omit to check only filesystem packages. |
| -SqlCredential | PSCredential | Optional | SQL authentication credential. |
| -FolderName | String[] | Optional | Restrict SSISDB packages to specific catalog folder(s). |
| -PackagePath | String | Optional | Path to .dtsx files (filesystem source). Omit to check only SSISDB packages. |
| -Recurse | Switch | Optional | Recurse into subfolders when reading .dtsx files. |
| -TargetVersion | Int | Optional | Target SQL Server version: 2016, 2017, 2019, 2022, or 2025. Default: 2022. |
| -OutputPath | String | Optional | Directory for HTML/TXT/CSV reports. Default: $env:ProgramData\sqmSQLTool\SSISReports (or the module config OutputPath). |
| -NoOpen | Switch | Optional | Suppress automatically opening the HTML report. |
| -EnableException | Switch | Optional | Throw exceptions instead of returning an error-status object. |
Return Value
Returns a single PSCustomObject with: SqlInstance, PackagePath, TargetVersion, CheckCount, CountOk, CountWarn, CountErr, Status (OK, Warning, or Error), Checks (array of per-package/connection findings), HtmlFile, TxtFile, CsvFile, Message.
Examples
Example 1 — Check deployed packages on the target server
Test-sqmSSISPackageCompatibility -SqlInstance "NewServer2025" -TargetVersion 2025Example 2 — Check package files before deployment
Test-sqmSSISPackageCompatibility -PackagePath "C:\OldPackages" -TargetVersion 2025 -RecurseExample 3 — Compare deployed vs. backup packages in one report
Test-sqmSSISPackageCompatibility -SqlInstance "NewServer2025" -PackagePath "C:\OldPackages" -TargetVersion 2025