Formating puts the ON clause in the wrong place
wsoranno
Posts: 65
When using the WITH (NOLOCK) in a JOIN of the FROM clause, the ON clause is shifted out to the first parentheses of the WITH as in the following example:
It should look like this:
I am on version 5.2.2.1 of Sql Prompt.
Bill
FROM BillingProcess.dbo.Billing AS b WITH (NOLOCK) JOIN BillingProcess.dbo.v_Terms AS vt WITH (NOLOCK) ON b.YRTR = vt.Term
It should look like this:
FROM BillingProcess.dbo.Billing AS b WITH (NOLOCK) JOIN BillingProcess.dbo.v_Terms AS vt WITH (NOLOCK) ON b.YRTR = vt.Term
I am on version 5.2.2.1 of Sql Prompt.
Bill
Thanks
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
wsoranno@winona.edu
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
wsoranno@winona.edu
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
Comments
I will check the values when I get back into the office and let you know for sure.
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
wsoranno@winona.edu
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
Here are the values I have set for the New lines options:
First Column = True
Each subsequent column = True
Contents of parentheses = True
Closing parenthesis = True
Join condition = True
Indent subclasses = False
Align join condition with JOIN = False
If I set the Align join... to True here is what the statement will look like:
If I set it to False and remove the WITH clauses this is what I want it to look like: I am expecting the same behavior as the second example above when the WITH clause is present. I want the ON clause to be indented. It makes for easier readability.
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
wsoranno@winona.edu
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92
I will pass this along to the development team. But would it also be possible for you to post to the SQL Prompt UserVoice forum a suggestion to change this? This forum allows other users to comment and vote for features and the development team takes these into account.
http://redgate.uservoice.com/forums/944 ... uggestions