Table of Contents

Property MaxNormalizedSqlLength

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

MaxNormalizedSqlLength

Gets or sets the maximum length of retained normalized SQL, in characters. Defaults to DefaultMaxNormalizedSqlLength.

public int MaxNormalizedSqlLength { get; set; }

Property Value

int

Remarks

Generated SQL for a wide projection can run to tens of kilobytes. Truncation keeps a report readable and keeps retention bounded, and it is always marked explicitly so nobody mistakes a truncated statement for the whole one. With the built-in redactor, this limits retained text only; the fingerprint identifier is computed from the complete redacted SQL before truncation.

Exceptions

ArgumentOutOfRangeException

The value is less than one.