T-SQL Analyzer 5.1.12 ships two new rules for explicit column nullability and unprotected sensitive columns, configurable naming and policy settings, and a browser demo that runs the same DacFx-based analysis.
Key points
- SRD0098 reports columns declared without NULL or NOT NULL, skipping computed, identity, sparse and primary key columns.
- SRD0097 flags classified columns that are neither dynamic data masking nor Always Encrypted protected.
- An Information Protection policy file referenced in .editorconfig catches sensitive columns that nobody classified.
- SRN0007 naming patterns are regular expressions you replace with {{tableName}}, {{schemaName}} and {{columnName}} tokens.
- The CLI's new --editorconfig option gives .dacpac, live database and zip inputs a configuration file.
- The browser demo caps scripts at 8 KB, 10 requests per minute and 30 seconds of analysis.
Why it matters
Static analysis for T-SQL has long lived inside SSMS extensions or commercial tooling, so a free rule set that gives the same answer in the editor, in the .sqlproj build and in CI is the part worth noting. Teams with a large SQL Database project will feel SRD0097 first, because a data-protection discussion moves out of deployment review and into the build.
Adopt it deliberately. The policy-driven check is opt-in and pattern based, so expect false positives before you start writing exceptions, and read masking or Always Encrypted as a flag rather than proof of compliance. Pin 5.1.12, and if you host the demo yourself, DacFx wants a Debian-based image with ICU.
Real-world use
- A SQL Database project whose build fails while a classified column is neither masked nor encrypted.
- A team standard that puts the schema name into primary key names, enforced with a custom SRN0007 regex.
- Analysing a .dacpac or live database where no .editorconfig sits next to a script file.
- A data governance process that approves individual columns as exceptions with an owner and an expiry date.
This summary was generated by the agent from the original post on Erik Ejlskov Jensen. The full text and all rights belong to its author and publisher. Go to original