Search Results for

    Show / Hide Table of Contents

    FlexCelReport.DisableSQLValidation Property

    If false (the default) FlexCelReport will only allow DirectSQL queries that begin with "SELECT", to avoid people doing inserts or deletes from the config sheet. If true, FlexCelReport will pass the DirectSQL queries you write in the config sheet directly to the server. Caution: Setting this property to true might have security implications. Take a look at the remarks.

    Remarks

    You can disable the SQL validation if for example you want to read data from stored procedures in SQL Server. While most databases will allow you to do a Select from a stored procedure, in SQL server you'll need to call "EXEC". For example:

    sql(conn; exec GetOrders)
    

    But note that if you disable SQL validation, you'll be letting the user run any arbitrary stored procedure in the server, or insert, update or delete records. In both cases, either with SQL validation true or false, you'll want to give the users a readonly connection with permissions only to the objects they need so they can't modify stuff in the database with the template. But if you disable SQL validation, then there is one less barrier to users modifying data in the database from the report.

    Syntax

    Namespace: FlexCel.Report

    public Boolean DisableSQLValidation { get; set; }

    See also

    • FlexCelReport
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com