Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sql indentation in SQL Server Management Studio [closed]

Folks, is there a tool to format/indent SQL Server queries in query window ?

like image 244
SoftwareGeek Avatar asked Dec 02 '22 06:12

SoftwareGeek


2 Answers

With Apex SQL Refactor, you can specify your formatting preferences and reformat selected code or the entire window at any time using a keyboard shortcut. There's a free version.

ApexSQL Refactor

like image 113
srmark Avatar answered Dec 20 '22 09:12

srmark


+1 to JackM.

Just add a mention for some other (not free) tools available from Red Gate, depending on exact requirements.

SQL Prompt
SQL Refactor

Might be something you'd be interested in.

like image 25
AdaTheDev Avatar answered Dec 20 '22 09:12

AdaTheDev