WinSQL is okay. http://www.synametrics.com/SynametricsWebApp/WinSQL.jsp
Try UltraEdit - it's not quite an IDE, but might do what you want? (note: it does its autoformatting based on file extension, and you might have to grab a SQL keyword file from the website)
On that note, anyone know decent open-source library that would help with generating SQL.
If you have budget and are using oracle, sql server, or sybase check out sql programmer from bmc and cast sql builder from cast software. Both are nice tools.
Toad - much more than an editor and works across all the major engines. If you don't need all that...
Fog Creek Home