ASP.NET MVC 10.1.11
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class QueryExecutionHelper

Provides centralized validation for SQL execution policy enforcement in the reporting web layer. The helper inspects query text, strips literals and comments, evaluates permission-tier rules, identifies dangerous execution patterns, and compresses violations into a single user-facing message.

Inheritance
System.Object
QueryExecutionHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BoldReports.Data
Assembly: BoldReports.Web.dll
Syntax
public static class QueryExecutionHelper

Methods

HasRestrictionCommands(String, QueryExecutionPolicy, String, out String)

Validates the query text against the supplied policy and, when restricted, compresses all collected violations into a single error message.

Declaration
public static bool HasRestrictionCommands(string query, QueryExecutionPolicy policy, string connector, out string error)
Parameters
Type Name Description
System.String query

The raw SQL query text, including comments or literal values.

QueryExecutionPolicy policy

The execution policy to apply; a null or disabled policy allows everything.

System.String connector

The provider identifier used for provider-specific allow and ignore checks.

System.String error

Receives the aggregated violation message when the query is restricted; otherwise, an empty string.

Returns
Type Description
System.Boolean

True when the query violates the configured policy; otherwise, false.

In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved