views:

425

answers:

5
+2  Q: 

Tidy for SQL

I'm looking for a tool that that I can use to clean up (formatting, tabs etc...) my stored procedures and views. Is there anything like html's tidy, but for SQL which is free/open source?

+1  A: 

Here is one option.

http://www.dpriver.com/

http://www.wangz.net/sqlpp/vsaddin.html

Daniel A. White
This is kind of what I'm looking for, but it looks like its an online app, I'd like to have something that I can hook into locally and integrate with an existing application.
Rob
Website is free to use, but the add-in for SSMS is $40 USD.
Rick
+3  A: 

ssmstools is useful

gbn
I just installed this and its a very useful tool kit. +1
Rob Allen
Thanks, its shaping up to be a great tool for me. Just a word to the wise. This program will now work unless you have SP2 installed.
Rob
A: 

I use Instant SQL Formatter occasionally, it does the job for me.

Website is free to use, but the add-in for SSMS is $40 USD.
Rick
A: 

You could try the free Simple Talk Prettifier:

http://www.simple-talk.com/prettifier/

It's basic but might satisfy your requirements.

David Atkinson
A: 

an ssms 2005/2008 addin: http://code.google.com/p/sqlformat/

it lacks some features but it is very a good start

yioann