Qualify object names on table valued function - bug
maddoc
Posts: 8 New member
Hi,
When I'm qualifying object names (CTRL+B, CTRL+Q)
on query that has clause and table valued function with already qualified object names - table alias get removed, e.g:
FROM person AS p
CROSS APPLY My_DB.dbo.fn_bla(p.column_name) AS c
Becomes:
SELECT c.Res
FROM person AS p
CROSS APPLY My_DB.dbo.fn_bla(column_name) AS c
Happens with all members of my team as well.
Using version 9.4.1
Thanks.
Tagged:
Answers
FROM Application.Cities AS this_alias
CROSS APPLY Application.DetermineCustomerAccess(this_alias.CityID) AS dca
FROM Application.Cities AS this_alias
CROSS APPLY Application.DetermineCustomerAccess(CityID) AS dca
I am using SSMS v 14.0.17289.0
Before formatting
OUTER APPLY dbo.fnCheckIsProshipDlvmode (JS.DATAAREAID, LI.DLVMODE) AS psA
After formatting
OUTER APPLY dbo.fnCheckIsProshipDlvmode (JS.DATAAREAID, DLVMODE) AS psA
on this function with two parameters it is only removing the qualifier on parameter 2