As an sql server developer, I have used the add in for sql server project management studio available for free. It has amazing facilities like:
- Formatting of sql
- Convert to C# / VB.NET button which will format and convert the sql code to usable source code using StringBuilder concatenations.
- It can also convert the same code generated using Convert to C# / VB.NET to sql code.
I generally use stored procedures for sql scripts which involves DMLs for more than one table and use parameterized sql queries and for both cases this tool helped me a lot for getting the sql source code formatted and readable.
Have fun with this amazing tool and have your sql code formatted quickly.