Is there any sql query validator in frontend side or in any language for validating the query syntax before executing in the database ?.In my current project i have to validate the the sql query in flex before it goes to back end ,coz it has to pass lot many layers before hitting database and the hitting the DB and coming back with an exception is an too expensive process .So im in need of sql query validator in front end side to atleast say its a valid query .
Share
You could grab the SQL BNF grammar and use parser generator to validate input.
I am sure you would have to tweak the standard grammar and this is not trivial.
Also, I am sure that you can find something better, but I hope the above will get you somewhere.