sys.sp_ms_marksystemobject for udf's?

hi i've used the procedure sys.sp_ms_marksystemobject successfully to mark sproc's as system objects but I have not been succesful attempting the same thing for functions. Is there a difference? Is a different syntax necessary?

(what actually happens is that it seems to register as a system function - it comes up in the right place under system functions - but i can't use it outside of the master database. I named fn_myfunction.)

please advise, thanks.
LVL 1
AlizaNAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
I dont think that's possible..
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chapmandewCommented:
Not sure you can do this...you can mark the function, but I believe you will still have to have it in every db...unless of course, you start the function with sp_
0
AlizaNAuthor Commented:
interesting. it so happens that this function doesn't really access any data - it's just a calculation. so i left it as a regular function in the master db and reference it as master.dbo.myfunction.
thanks for the confirmation.
0
chapmandewCommented:
sure
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.