SQL String Formatter (Part 1)
I am looking for a code (or command line software) that able to format/tidy-up SQL string to make it readable and doesn’t irritate the eyes. So far I have found:
- SQLinForm
It’s quite handy, you can run it on your browser and download the offline version which is packaged into one single Java Jar file. Unfortunately, I’m looking for something with with command line or open source. At least with command line support I can invoke it from my .NET program to process the temporary file. - SQL Online Formatter
Still without the programmability support. - SQL Review
With command line support. Unfortunately It’s throwing error on one of my stored procedure, but it still gives you the output. - Pl/Sql Tidy
This program is only available in command line. Unfortunately, it never able to process my stored procedure. I not so sure whether it’s still maintained. - Using Flex Script.
This page is pure inspirational. It immediately opened up my eyes for the possibility of using Flex or Regular Expression. I think will stick to this solution.
Although I have made up my mind, I will provide the output of each program in the next posting. Hopefully once I am be able to port VS. Babu’s lex script (or make my own regular expression code), I will share it with you all.
Credits:
Powered by Gregarious (42)
Hardono Arifanto :: Aug.29.2007 :: Database, Programming, Software :: 5 Comments »
5 Comments to “SQL String Formatter (Part 1)”
-
Pingback:
Posted: Aug 30th, 2007 at 12:58 am1SODEVE » SQL String Formatter (Part 2)[…] As I promised before, I will put the output of the programs that I mention in the previous post. […]
-
Marton Papp
Posted: Sep 13th, 2007 at 5:28 pm2Hi!
I wrote Pl/Sql Tidy. It should work in most cases.
Do you use Pl/Sql?
Send me an example when it does not work.
I will look at it.
-
Marton Papp
Posted: Nov 14th, 2007 at 4:39 pm4Yes, it only accepts Pl/Sql Syntax.
-
dion
Posted: Jul 30th, 2008 at 9:32 pm5You can also try T-SQL Beautifier here:
http://www.ubitsoft.com/products/t-sql-beautifier/index.php






