Solved

tool to format a sql query into a proper format

Posted on 2013-01-22
4
235 Views
Last Modified: 2013-01-23
is there any tool out there to automatically format your query to more easily readable format..

example

select * from a join b on id1=id2

to

SELECT *
FROM
A
JOIN
B
ON
id1=id2..

of course, i am only asking for more complicated queries..

is this out there at least in part.. i don't think ssms offers any solutions for this, not?
0
Comment
Question by:25112
4 Comments
 
LVL 26

Assisted Solution

by:Chris Luttrell
Chris Luttrell earned 167 total points
ID: 38808303
I like the Red-Gate tools, i.e. SQL Prompt 5, here, you can try it for 2 weeks free and our team thinks it is well worth the price.
0
 
LVL 39

Assisted Solution

by:Pratima Pharande
Pratima Pharande earned 166 total points
ID: 38808592
0
 
LVL 24

Accepted Solution

by:
DBAduck - Ben Miller earned 167 total points
ID: 38808593
I would second the Red-Gate SQL Prompt. It is a great product.
0
 
LVL 5

Author Comment

by:25112
ID: 38810709
Super! thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question