How to enable use of AS only for Columns and not Tables
EdCarden
Posts: 138 Silver 2
in SQL Prompt
How do I set SQL Prompt to do this:
SELECT T1.col1 AS 'Col1'
FROM TABLE1 T1
and NOT this:
SELECT T1.col1 AS 'Col1'
FROM TABLE1 AS T1
SELECT T1.col1 AS 'Col1'
FROM TABLE1 T1
and NOT this:
SELECT T1.col1 AS 'Col1'
FROM TABLE1 AS T1
Tagged:
Best Answer
-
TomW Posts: 108 Gold 1Hi @EdCarden
In order to achieve this, you'll need to set the following options. The first one is under the "Aliases" tab in the options, whereas the second one is under "Styles".
Let me know if you have anymore problems.
Thanks,
TomSoftware Engineer for SQL Prompt
Redgate Software
Answers
Ive never looked at the Styles feature before because I felt t was never flexible enough to suit my needs but its close.
I want to ask another Q but I can;t figure out how t post T-SQL code here so that its aligned correctly and presented here the same way it looks in SQL Server Mgt Studios query
Your best bet is likely to be to get in touch with our support team who can help you get a solid reproduction of your issue.
Thanks,
Tom
Redgate Software