What is a good method for parsing an sql string into it separate components. I\'v tried with a regex, however I can\'t get it to work just right.
Say for instance:
Parsing SQL correctly and completely is hard. For free you could use a parser generator toolkit like ANTLR along with a SQL 'grammar'. For cost, I know that Visual Studio Team System 2008 Database Edition includes a SQL parser.