March 21, 2014 at 7:13 am
How to format a query in Microsoft SQL Server Management Studio 2008 R2.
I dont see any format query kind of menu.
Is there any way ?
I have a query which is one line ...I find it difficult to read.
I want to format it in a structured way ....better readability
March 21, 2014 at 7:26 am
Are you talking about changing the font and the background colour, etc? If so take a look at Tools > Options > Fonts and Colors.
March 21, 2014 at 7:26 am
Are you talking about changing the font and the background colour, etc? If so take a look at Tools > Options > Fonts and Colors.
March 21, 2014 at 7:31 am
SSMS does not format queries or their results. You need to format the query manually.
You should use something like .NET to get and format the results.
March 21, 2014 at 7:31 am
Are you lookin for following link?
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
March 21, 2014 at 7:36 am
I want to format sql query.
March 21, 2014 at 7:38 am
You need to tell us what you mean by that because it's not clear.
March 21, 2014 at 7:39 am
If you have T-SQL code you want formated, show use the code.
March 21, 2014 at 7:41 am
March 21, 2014 at 9:24 am
Another option is to use http://poorsql.com
It has SSMS and notepad++ plugins plus, plus a stand-alone formatter.
March 21, 2014 at 10:15 am
If you don't mind spending a little money, Red Gate SQL Prompt[/url] is a tool that I can't live without. It formats your code. And it provides code completion way above and beyond that available in SSMS, plus code snippets, tab history, all kinds of joy.
DISCLAIMER: I gleefully work for Red Gate.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply