Look at this a little below: Case insensitive "Contains (string)"
Basically make the case insensitive (otherwise you will need a lot of code to check for different versions of DeLetE (DELEte, etc.)
Also, can you create a list with forbidden keywords and skip it, maybe a little cleaner?
What happens if a user needs to request something with these keywords?
SELECT IsDeleted FROM Users;
Maybe you can look at the parameters or create your own "builder request" depending on the complexity of the requests (a bunch of drop-down lists based on the data in the database?).
A few suggestions.
But you should, if possible, follow read-only user recommendations.
source share