SELECT dbo.myFunction(GETDATE())
I can't figure this out. If I run the above statement in Database A, it works fine. But if try to run it from Database B on the same server, I get an error:
Msg 4121, Level 16, State 1, Line 1
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.myFunction", or the name is ambiguous.
"myFunction" exists in both Database A & Database B, so what's the problem?
Thanks
I can't figure this out. If I run the above statement in Database A, it works fine. But if try to run it from Database B on the same server, I get an error:
Msg 4121, Level 16, State 1, Line 1
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.myFunction", or the name is ambiguous.
"myFunction" exists in both Database A & Database B, so what's the problem?
Thanks