Do you know the Keyboard shortcut key in SQL Server 2008 Management Studio to do SQL Query Formatting?
I hope this will help future readers if OP is already found the solution.
There is no built in formatting in SSMS but there are free SSMS Addins such as ApexSQL Refactor you can use for this.
Apart from this you can also try SSMS tools pack but note that it’s not free for SQL 2012.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With