Alignment
torsten.strauss
Posts: 271 Silver 3
in SQL Prompt
Hi Redgate Team,
The following code is formatted like this
[code]
SELECT *
FROM
dbo.test_statistics
WHERE
col1 = 101
OPTION (QUERYTRACEON 9481 -- Redirects the output to SSMS
, QUERYTRACEON 3604, QUERYTRACEON 9204 -- Returns the Statistics that were used during Cardinality Estimation
);
GO
FROM
dbo.test_statistics
WHERE
col1 = 101
OPTION (QUERYTRACEON 9481 -- Redirects the output to SSMS
, QUERYTRACEON 3604, QUERYTRACEON 9204 -- Returns the Statistics that were used during Cardinality Estimation
);
GO
[/code]
There is no way to adjust the alignment of the second line in the subquery.
Thanks for your support!
Torsten
Torsten
MVP
Tagged:
Answers
I take it you want the 'querytraceon' line lined up with the above bracket?
It seems the issue is maybe caused by tge comments ...
Thanks for looking into this
You are right, this is unfortunately not possible to do with Prompt at the moment. I couldn't find any similar suggestion on our user voice forum. Can you kindly post it there? https://redgate.uservoice.com/forums/94413-sql-prompt
Thanks!
Tianjiao Li | Redgate Software
Have you visited our Help Center?