Skip to content

feat(sqlserver): harden collector queries, integrate deep scanner, add TDD test suite, and sanitize error log - #591

Open
timchapman wants to merge 11 commits into
GoogleCloudPlatform:mainfrom
timchapman:sql_collector_updates
Open

timchapman wants to merge 11 commits into
GoogleCloudPlatform:mainfrom
timchapman:sql_collector_updates

Conversation

@timchapman

Copy link
Copy Markdown
Contributor

PR Description / Summary:
• Entra ID MFA: Persistent ADO.NET connection engine replacing legacy ODBC helper functions.
• Manifest Collector: Explicit manifest tracking via instanceReview_manifest.ps1 and schema parity.
• Deep Assessment Engine: T-SQL PostgreSQL Deep Compatibility Scanner (tsqlPostgresDeepScanner.sql) and SQL Agent Job analyzer (sqlAgentJobs.sql).
• Hardware & Performance DMVs: DMV wait statistics, CPU/Memory profiles, and storage I/O latency trackers.

timchapman and others added 11 commits July 8, 2026 19:01
Adds -useEntraIDAuthentication switch to instanceReview.ps1 and
runAssessment.bat. When set, the script validates az CLI and go-sqlcmd
are installed, triggers az login if no session exists (MFA fires once),
and passes --authentication-method ActiveDirectoryDefault to all 32
sqlcmd calls so the cached Azure CLI token is reused throughout.

-collectionUserName / -collectionUserPass are mutually exclusive with
-useEntraIDAuthentication and will exit with an error if both are
supplied. Existing SQL Auth and Windows Auth paths are unaffected.
… engine inside sqlcmd wrapper to guarantee exactly ONE authentication prompt across all 50+ assessments
…ve cross-platform HW Specs, and explicit manifest mapping
…d TDD test suite, and sanitize error log

- Add 15 new T-SQL collector queries covering performance (CPU, Memory, Waits, IO, Batch), hardware specs, Postgres deep migration blockers, and Azure MI metrics.
- Sanitize instanceErrorLog.sql to filter sensitive credentials and failed login patterns.
- Add full Tim Chapman author attribution and Apache 2.0 license headers across all SQL and PowerShell scripts.
- Remove obsolete dbServerDmvPerfmon.sql.
- Add test_sqlserver_collector_seams.py TDD suite to verify headers, sanitization, and query integrity.
- Align manifest metadata and fix typo identifiers in instanceReview.ps1.
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.

1 participant