I’ve spent some time searching and I’ve finally found a good tool for auto-formatting SQL! Simply paste in your fugly code, make any configuration tweaks, post and *bam*. Beautiful SQL.
Great for those ColdFusion dumps.
There’s also a desktop version, but I didn’t check it out.