I have read several posts with similar topic headers but I don't think my question is answered.
I created a function (say dbo.fnABC()) with:
Returns Table . . . and
Select Top 10
. . . and executed it.
Then I created a Query:
Select * from dbo.fnABC()
. . . and it returns the expected 10 rows.
However, in both the Function AND the Query, dbo.fnABC() has a red, squiggly underline and a quick hover shows:
Invalid object name dbo.fnABC()
It's working and all - but I would like to know why the squiggly lines under the Function name?
What will make it a valid object name?
Thanks!!