ActiveDatabaseSoftware.ActiveQueryBuilder Namespace > BaseSyntaxProvider Class : ValidateQuery Method |
'Declaration Public Function ValidateQuery( _ ByVal sql As System.String, _ ByRef errorInfo As System.String _ ) As System.Boolean
'Usage Dim instance As BaseSyntaxProvider Dim sql As System.String Dim errorInfo As System.String Dim value As System.Boolean value = instance.ValidateQuery(sql, errorInfo)
MSSQLSyntaxProvider syntax = new MSSQLSyntaxProvider(); string errorInfo = ""; if (!syntax.ValidateQuery("select * from Orders", ref errorInfo)) { MessageBox.Show(errorInfo); }