Possible Duplicate:
SQL Formatter for SQL Management Studio
So Visual Studio has a command like Format Document [Ctrl+K, Ctrl+D] is there something similar for SQL Management Studio?
If not is there any other product out there, anywhere, that can help with this?
We have hundreds of these we have to go through in a rather short time span, and as it we spend WAY to much time reformatting them due to poor initial formatting quality.
We are using Microsoft SQL 2008.
You could try SQL Formatter (webbased). I think there was a similar question some time ago.
Edit: Yup, duplicate question.