Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 General Discussion
»
Management Studio query formatting
Management Studio query formatting
Rate Topic
Display Mode
Topic Options
Author
Message
Meredith Joder
Meredith Joder
Posted Wednesday, March 05, 2008 7:46 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 12:04 PM
Points: 2,
Visits: 23
Does anyone know if Management Studio can be set up to auto format when writing queries - along the lines of how Visual Studio will automatically indent the next line when writing
IF...THEN
[indent] do this
END.
I have seen add-ins to do this so I'm kind of guessing it can't do this - or there wouldn't be add-ins to do it. But I figure it is worth a shot to ask! Thanks!
Post #464442
Grant Fritchey
Grant Fritchey
Posted Wednesday, March 05, 2008 8:29 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 1:06 AM
Points: 13,437,
Visits: 25,282
Nope. Can't do it.
There are a lot of third party tools for this, free, cheap & expensive. Personally, I use Red Gate SQL Prompt & SQL Refactor. Between the two, I can keep my code well formatted.
----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of:
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans
Product Evangelist for
Red Gate Software
Post #464477
Tommy Bollhofer
Tommy Bollhofer
Posted Wednesday, March 05, 2008 8:32 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 8:22 AM
Points: 1,155,
Visits: 3,166
Refactor is great for formatting. IntelliSense is included in 2008's SSMS.
An example of an online tool -
http://www.wangz.net/cgi-bin/pp/gsqlparser/sqlpp/sqlformat.tpl
Tommy
Post #464483
Meredith Joder
Meredith Joder
Posted Wednesday, March 05, 2008 9:24 AM
Forum Newbie
Group: General Forum Members
Last Login: Tuesday, January 29, 2013 12:04 PM
Points: 2,
Visits: 23
Thanks for the information!
Post #464538
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.