Solved

Fomatting a Query

Posted on 2008-10-03
1
187 Views
Last Modified: 2012-05-05
Im using SQL Server Management Studio 2005 to develop queries.

When I develop queries I usually forget to fomat them and lay them out properly so they are readable.

Are there any tools in Studio 2005 that will format the queries and lay them out automatically or is there a website out  there that shows how a query should be layed out

Thanks
0
Comment
Question by:halifaxman
1 Comment
 
LVL 60

Accepted Solution

by:
chapmandew earned 250 total points
ID: 22633307
nothing native to sql server or ssms, but you can try out a product from red-gate that does wonders for this sort of thing...its called SQL Refactor.

http://www.red-gate.com/products/SQL_Refactor/index.htm
0

Featured Post

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to PARSE a text field that is delimited by '~' character? 3 54
Sql Data via Excel--performance issues 2 55
Isolation level in SQL server 3 47
CROSS APPLY 4 45
This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
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.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now