Skip to content

Diag: wrap long SQL text columns in processing-instruction XML for clickable SSMS output #625

Description

@nanoDBA

Feature

Expert-mode result sets that emit long SQL text (failing/long-running statistic commands, remediation SQL) return plain nvarchar columns — truncated and unclickable in SSMS grids. Wrapping these in FOR XML PATH [processing-instruction(query)] columns makes each one a single click to open, fully expanded, with formatting preserved. The technique is currently unused anywhere in the codebase.

Apply to command/remediation text columns in the expert-mode result sets; plain-text columns can remain alongside for programmatic consumers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticDiagnostic output, trending, observability improvementsenhancementNew feature or requestp3-nice-to-haveLow-impact enhancement or minor improvementusabilityParameter naming, output formatting, or user-facing behavior improvements

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions