With MS SQL Maestro you can edit and execute SQL scripts.
It can automatically format your SQL code files.
Pack with SQL server administration tools.