A default implementation of the ICustomQueryValidator interface that provides custom validation logic for SQL queries.
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.
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.