The Action column controls how custom aliases are generated when a condition in the Condition column is met.
In the Action column, you can do the following:
Define a custom alias format: Specify the characters or structure that will be applied when an identifier is inserted from the suggestion list.
Exclude parts of an identifier: Omit specific parts of an identifier by enclosing them in square brackets ([ ]). Excluded parts aren’t used in alias generation.
Reference specific identifiers: Use placeholders to reference parts of a qualified name, such as server, database, schema, or object. The placeholders (<1>, <2>, and so on) are numbered from left to right based on the order of identifiers.
Disable alias generation: Select No Alias to prevent alias creation for objects that match the condition.
| Action mask | Explanation |
|---|---|
Id<1> |
Adds the Id prefix to a generated alias. |
<1><2> |
Generates an alias from the referenced identifiers. |
<[Dept]1> |
Excludes Dept from a generated alias. |
To generate an alias from the only element in the condition, specify <1> in the Action column.

The alias is generated from the initials of the only identifier—ContactType.
SELECT * FROM Person.ContactType ct
You can add characters before or after <1> to extend the generated alias.

NewAlias is added after the alias generated from ContactType.
SELECT * FROM Person.ContactType ctNewAlias

NewAlias is added before the alias generated from ContactType.
SELECT * FROM Person.ContactType NewAliasct
If a condition contains multiple elements (for example, a server, database, schema, and a table name), you can base the alias on one or more identifiers using placeholders.
To generate an alias from the database name (AdventureWorks2022), specify <2>, because the database is the second element in the condition.

The alias aw is generated from AdventureWorks2022 by applying the standard algorithm, which uses the uppercase letters of the PascalCase identifier.
SELECT * FROM LinkToSQLServer2022.AdventureWorks2022.Person.Address aw
To generate an alias from the schema (Person) and the table (Address), specify <3> and <4>.

The alias pa is generated from the initials of the schema and table names.
SELECT * FROM LinkToSQLServer2022.AdventureWorks2022.Person.Address pa
If the condition is <*>.<*>.<*>.<*> and the alias mask is <1><2><3><4>, the alias is generated for all four identifiers by applying the standard algorithm.
SELECT * FROM LinkToSQLServer2022.AdventureWorks2022.Person.BusinessEntityAddress ltsawpbea
SELECT * FROM LinkToSQLServer2022.AdventureWorks2022.Sales.Customer ltsawsc
SELECT * FROM LinkToSQLServer2022.DWQueue.dbo.MessageQueue ltsddmq
To exclude a part of an element defined in the Condition column, specify the element number in the alias mask and enclose the characters to exclude in square brackets [ ]. Place the alias mask in angle brackets < > in the Action column.
In this example, Add is excluded from the fourth identifier (Address).

The next character after the excluded part (r) is used as the alias.
SELECT * FROM LinkToSQLServer2022.AdventureWorks2022.Person.Address r
You can apply the same rule to multiple identifiers. In this example:
Adv is excluded from the second identifier (AdventureWorks2022).Add is excluded from the fourth identifier (Address).
When Adv is excluded from the second identifier (AdventureWorks2022), the alias is generated depending on the casing of characters that follows the exclusion.
If only lowercase characters follow (as in Adventureworks2022), the alias is generated from e.
SELECT * FROM LinkToSQLServer2022.Adventureworks2022.Person.Address er
If the identifier is AdventureWorks2022 (with an uppercase W), the alias is generated from the uppercase character instead.
SELECT * FROM LinkToSQLServer2022.AdventureWorks2022.Person.Address wr
You can create complex alias masks that combine referenced identifiers, excluded parts, and static values.
For example, you can:
Adv from the second identifier (AdventureWorks2022).Add from the fourth identifier (Address).NewAlias to the result.
The generated alias consists of wr (derived from the modified identifiers) followed by the static string NewAlias.
SELECT * FROM LinkToSQLServer2022.AdventureWorks2022.Person.Address wrNewAlias
Note
You can place static characters before, after, or between placeholders (
<1>,<2>, and so on) to construct aliases in a consistent format.