SQL Server does not have a code formatting tool, and manual formatting is a hassle for dealing with long SQL written by others.
Recommended for SQL Server Management Studio and for plug-ins under Visual Studio ApexSQL Complete,apexsqlrefactor,apexsqlsearch
ApexSQL Complete
- Tracking has been closed about the label (need to be enabled in the settings in order to take effect, will consume a certain amount of hard disk space, recommended for the development of the madman, in fact, I raise the label less good)
- Multiple clipboard
- Indexed by code structure (many ctrl+f can be used less)
- Automatically added some symbols, such as you entered/*, will be generated automatically */
- Begin End Pairing
- Automatically populated SQL statements, such as all column names that require a table (useful if the column name is many)
- Keyword formatting
- Quickly populate object names
Free SQL Formatter
- Format the SQL statement (m$ don't do it, somebody has to do it)
- Advanced formatted SQL statements (this is a good idea for a team project).
- Improved database performance for system-resolved SQL reuse execution plans
ApexSQL Search
- Advanced search function, the individual has not used too much not to comment
This tool supports versions of SQL Server 2014, 2012, 2008, 2005, except the Express version,
FAQs ApexSQL Complete
ApexSQL Documentation
Recommended free plug-ins for SQL Server Management Studio and Visual Studio ApexSQL complete