Remarks

The ValidateCustomSqlQuery event is raised each time the custom SQL query, which is used to supply the dashboard with data, needs to be validated. This is true if the DashboardSqlDataSource is used as a dashboard data source and the CustomSqlQuery is used to select data. For instance, the ValidateCustomSqlQuery event is fired for each custom SQL query in the following cases.

The dashboard, which is supplied with data using a custom SQL query, is being loaded to the DashboardViewer.