Aliases - also enclose with square brackets []
using the example
SELECT patientid FROM PTGEPATIENT AS pgp
If I qualify object names (ctrl-B, ctrl-Q), I will get
SELECT [pgp].[patientid] FROM [dbo].[PTGEPATIENT] AS pgp
The alias is not enclosed in square brackets after the "AS" keyword. Would like to see that support for consistency (this is the standard I currently have in place)
7
votes
![](https://secure.gravatar.com/avatar/619b047b6460cf2336a351323debe171?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
This is included in SQL Prompt 6.4, which you can download from http://www.red-gate.com/products/sql-development/sql-prompt/