Hi there,
I'm a big fan of SQL Prompt's ability to customise the formatting of your SQL to suit the situation.
However, today I've run across a quirk working with:
- enclose identifiers in square brackets,
- column list expansion with an alias
Here's what I mean. Say I start with:
SELECT n.* FROM [gen].[PHONE_NUMBER_MST] AS n
If I place the caret after n.* and hit TAB SQL Prompt will insert all of the columns for me. What I'd like is this:
SELECT n.[PhoneGUID] ,
n.[CountryKey] ,
n.[PhoneNumber] ,
n.[BadNumberCount] ,
n.[IsDoNotCall] ,
n.[UpdateDate] ,
n.[UpdateSessionGUID] ,
n.[PhoneNumberTypeKey] FROM [gen].[PHONE_NUMBER_MST] AS n
Instead what I end up with is this:
SELECT [n].[PhoneGUID] ,
[n].[CountryKey] ,
[n].[PhoneNumber] ,
[n].[BadNumberCount] ,
[n].[IsDoNotCall] ,
[n].[UpdateDate] ,
[n].[UpdateSessionGUID] ,
[n].[PhoneNumberTypeKey] FROM [gen].[PHONE_NUMBER_MST] AS n
Rather than add another option to SQL Prompt's options dialog (although this would be a workable solution) it would be great if it would match the style I use for aliases automatically, in this case without braces.
Hope that's useful.
Thanks,
I'm a big fan of SQL Prompt's ability to customise the formatting of your SQL to suit the situation.
However, today I've run across a quirk working with:
- enclose identifiers in square brackets,
- column list expansion with an alias
Here's what I mean. Say I start with:
If I place the caret after n.* and hit TAB SQL Prompt will insert all of the columns for me. What I'd like is this:
Instead what I end up with is this:
Rather than add another option to SQL Prompt's options dialog (although this would be a workable solution) it would be great if it would match the style I use for aliases automatically, in this case without braces.
Hope that's useful.
Thanks,