Re: using EXECUTE AS for stored procedures, sql 2005
- From: Hugo Kornelis <hugo@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Aug 2009 22:55:15 +0200
On Mon, 31 Aug 2009 11:15:03 -0600, msnews.microsoft.com wrote:
Can you define "Owner" when using EXECUTE AS Owner for a stored procedure?
Each stored procedure has one, and exactly one account that is
considered to be its owner. This account is impersonated when using
EXECUTE AS OWNER.
Does that mean the stored procedure will be executed as the owner of the
stored procedure?
To be more precise, during execution of the stored procedure, you will
execute from the security context of said owner.
Who is the owner of the stored procedure, the creator?
By default, yes. But that can be changed by using ALTER AUTHORIZATION.
Wouldn't that be the same as Self then. Can I set the owner to a particular
account, and if so, how?
See above.
--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
.
- References:
- using EXECUTE AS for stored procedures, sql 2005
- From: msnews.microsoft.com
- using EXECUTE AS for stored procedures, sql 2005
- Prev by Date: Re: [NOW ANSWER Aaron's QUESTION CELKO]
- Next by Date: Re: using EXECUTE AS for stored procedures, sql 2005
- Previous by thread: using EXECUTE AS for stored procedures, sql 2005
- Next by thread: Re: using EXECUTE AS for stored procedures, sql 2005
- Index(es):
Relevant Pages
|
Loading