1. A computerized method for analyzing SQL queries for constraint violations comprising: tokenizing a SQL query to generate a token stream; generating lexical nodes by iterating over the token stream; constructing a parse tree by iterating over the lexical nodes; and analyzing, using a processor, the parse tree for constraint violations by comparing the parse tree to a SQL schema and access configuration for a database.