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 Tidy , but for SQL which is free/open source?
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 Tidy , but for SQL which is free/open source?
7条答案
按热度按时间2ic8powd1#
Two options that seem to be missing, and I think are both more appropriate than most options listed so far:
I believe either of these makes more sense than any of the previous answers because the other options provided are:
fwzugrvs2#
ssmstools is useful
jutyujz03#
I use Instant SQL Formatter occasionally. It does the job for me.
iyzzxitl4#
The format() function in python-sqlparse works nicely for me.
sauutmhj5#
You could try the free Simple Talk Prettifier.
It's basic, but it might satisfy your requirements.
c86crjj06#
An SSMS 2005/2008 addin: http://code.google.com/p/sqlformat/
It lacks some features, but it is very a good start.
yrefmtwq7#
SQL::Beautify may or may not help (a Perl module). I haven't tried it.