Why calling a user defined function need the owner name when calling a stored procedure doesn’t ?
Please help!
Why calling a user defined function need the owner name when calling a stored
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you mean the schema name? Owner is the user that created it.
It distinguishes the function from a built-in function. “System” stored procedures and functions live in the master database (so it can be searched), while built-in functions (things like
DATEADD) reside in the database engine themselves.I guess it’s more difficult when you specify
SELECT MyFunction()for the database engine to work out whether you mean a function that lives in a database, or a built-in function.