We are thinking of storing SQL queries in a separate table. These requests are for reporting purposes only. Different queries for different reports - in addition, the queries will contain placeholders, so we can either format or use the prepared statements from the Winforms front panel (this is a simple report application with two levels), for example. format the date range for the report.
I have some mixed feelings about this - is it ok to store SQL in a table, what will clients get and run?
source
share