corelibraries-devexpress-dot-dataaccess-dot-wizard-dot-services-adaf2a9b.md
A default implementation of the ICustomQueryValidator interface that provides custom validation logic for SQL queries.
Namespace : DevExpress.DataAccess.Wizard.Services
Assembly : DevExpress.DataAccess.v25.2.dll
NuGet Package : DevExpress.DataAccess
public class CustomQueryValidator :
ICustomQueryValidator
Public Class CustomQueryValidator
Implements ICustomQueryValidator
The default query validation mechanism only allows an end-user to specify custom SQL queries containing ‘SELECT’ statements.
Important
Although the default validation mechanism only allows custom queries containing SELECT statements (except for SELECT INTO clauses), it cannot be considered safe as it does not prevent execution of potentially harmful requests. For this reason, we strongly recommend that you implement your own validation logic that does not reduce the default restrictions and permits only execution of specific query kinds.
Object CustomQueryValidator
See Also
Custom SQL Query in the Report Designer for Web