SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
comma stacked even in t-sql function

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
comma stacked even in t-sql function
Author Message
maesta1



Joined: 28 Apr 2008
Posts: 11
Country: Korea, Republic of

Post comma stacked even in t-sql function Reply with quote
Whenevet I execute formatting, query is formatted as I do not expect.
I don't want convert system function is stacked. However I does.
I think sql assistant does not recognize convert function in ssms 2012.(but fine in ssms2008)
Any suggestions?

[current formatting setting]
SELECT ... AS ...
, .. = ...
FROM ... AS ..., ...
JOIN ...
ON ... = ...
AND ...
WHERE ... = ...
AND ...
OR ...
GROUP BY ..., ...
HAVING ..., ...
ORDER BY ..., ...

[original query]
SELECT TOP 10 CONVERT(CHAR(10), GETDATE(), 112), Seq
FROM Log1.dbo.TB_ChargeGameLog

[formatted]
SELECT TOP 10 CONVERT(CHAR(10)
, GETDATE()
, 112), Seq
FROM Log1.dbo.TB_ChargeGameLog


[preferred query]
SELECT TOP 10 CONVERT(CHAR(10), GETDATE(), 112)
, Seq
FROM Log1.dbo.TB_ChargeGameLog
Mon Mar 25, 2013 2:18 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7853

Post Reply with quote
What's the current value of maximum line length for text wrapping option in SQL Assistant Options?

By the way, to show the code as it appears on your screen, please select the text in your post and use wrap it in "code" tags, or use the Code button above the edit box to style it for you. This will make the message board to preserve the original spacing, indenting in your text. Example

Code:
SELECT ... AS ...,
       ... = ...
FROM   ... AS ...,
       ...
       JOIN ...
            ON  ... = ...
            AND ...
WHERE  ... = ...
       AND ...
       OR  ...
GROUP BY
       ...,
       ...
HAVING ...,
       ...
ORDER BY
       ...,
       ...

Mon Mar 25, 2013 8:06 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.