1

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
0

1 Answer 1

4

Qualify it with schema

SELECT ID, dbo.MyFunc(NAME)
FROM MYTABLE

post the function if it doesn't work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.