 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
maesta1
Joined: 28 Apr 2008 Posts: 11 Country: Korea, Republic of |
|
comma stacked even in t-sql function |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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
 |
 |
SELECT ... AS ...,
... = ...
FROM ... AS ...,
...
JOIN ...
ON ... = ...
AND ...
WHERE ... = ...
AND ...
OR ...
GROUP BY
...,
...
HAVING ...,
...
ORDER BY
...,
... |
|
|
Mon Mar 25, 2013 8:06 am |
|
 |
|
|
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
|
|
|