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.

Exceptions

ArgumentOutOfRangeException

The value is less than one.