Instant SQL Formatter

Auf dieser Seite gibt es einen netten Online SQL Formatter:
Instant SQL Formatter er kann dort auch heruntergeladen und in eigene Anwendungen eingebunden werden. Dazu gibt es versionen für NET, COM and VCL.

Das sagt die Webseite:

General SQL Parser adds powerful sql processing capability to your program, including sql syntax check, beautify complex sql code with lots of customizable format options, identify various database objects such as table, column, constraints in sql scripts, modify and rebuild sql on the fly, translate sql expression into a binary expression tree that ready for your further processing such as creating filter, and you take full control of sql with detailed parse tree of the whole input sql.

General SQL Parser is designed to deal with SQL statement used by different Database Such as Oracle,DB2,Informix,Sybase,Postgres,MySQL and so on. And it conforms to most of the entry-level SQL99 Standard.