Re: Change UDF Owner
- From: "Arnie Rowland" <arnie@xxxxxxxx>
- Date: Tue, 18 Jul 2006 12:53:35 -0700
It's because sa doesn't own the database objects, but dbo can.
EXECUTE sp_changeobjectowner 'fn_replgetagentcommandlinefromjobid', 'dbo'
should work for you.
--
Arnie Rowland
"To be successful, your heart must accompany your knowledge."
"A McGuire" <allen.mcguire@xxxxxxxxxxxxxxxxx> wrote in message
news:Ok8BDKqqGHA.4932@xxxxxxxxxxxxxxxxxxxxxxx
Can I change the owner of a UDF?
Example:
USE master
GO
EXEC sp_changeobjectowner 'fn_replgetagentcommandlinefromjobid', 'sa'
... isn't working. I want dbo to own all the objects in my database -
just a security best practice sort of thing. I can't seem to find my
answer searching the web.
.
- Follow-Ups:
- Re: Change UDF Owner
- From: A McGuire
- Re: Change UDF Owner
- References:
- Change UDF Owner
- From: A McGuire
- Change UDF Owner
- Prev by Date: Change UDF Owner
- Next by Date: Re: Change UDF Owner
- Previous by thread: Change UDF Owner
- Next by thread: Re: Change UDF Owner
- Index(es):