Reputation: 4039
I have a User Defined Function on database named MyFunc
. It takes a string parameter and returns a scalar value.
And MYTABLE
has two columns: ID, NAME
So Why is the following query error?
SELECT ID, MyFunc(NAME)
FROM MYTABLE
Upvotes: 1
Views: 843
Reputation: 31250
Qualify it with schema
SELECT ID, dbo.MyFunc(NAME)
FROM MYTABLE
post the function if it doesn't work.
Upvotes: 4