How can I make a TOraQuery be query only ?
I allow my user to type in some SQL, then copy it to the OraQuery.SQL and run it and show the results in a wwDBGrid
I want my user to only be able to run SELECT statements. How can I prevent them from running anything else (INSERT, UPDATE, DELETE, COMMIT, GRANTS, REVOKE, CREATE, DROP, PLSQL blocks etc)
Should I be using a different ODAC component instead of a TOraQuery ?
I have tried the following, but these settings seem to only limit data changes in the grid, and do not prevent the above
// prevent updates to database data
OraQuery1.ReadOnly := TRUE;
wwDataDBGrid.ReadOnly := TRUE;
OraSession1.AutoCommit := FALSE;
OraQuery1.AutoCommit := FALSE;
thanks