Re: Run an SP as another user
From: BP Margolin (bpmargo@attglobal.net)
Date: 06/05/02
- Next message: Richard Waymire [MS]: "Re: MS SQL Server 2000 SP2 AV problem with pwdencrypt: possible buffer overflow"
- Previous message: Craig: "Run an SP as another user"
- In reply to: Craig: "Run an SP as another user"
- Next in thread: Ping Wang: "Re: Run an SP as another user"
- Reply: Ping Wang: "Re: Run an SP as another user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "BP Margolin" <bpmargo@attglobal.net> Date: Tue, 4 Jun 2002 22:29:53 -0400
Craig,
To the best of my knowledge, the security context of a stored procedure is
that of the user that created the stored procedure, and that can not be
changed.
-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.
"Craig" <craig@reliancenetwork.com> wrote in message
news:etz#BfDDCHA.2096@tkmsftngp04...
> I want to create a stored procedure, but the user that needs to execute it
> doesn't have permissions to execute some of the statements in it.
>
> Is there a way to have the SP run as a different user. Like a statement
at
> the beginning of the SP to change the user to someone with permissions,
then
> at the end of the SP, change it back...or something like that.
>
> Please help. Thanks.
>
>
>
- Next message: Richard Waymire [MS]: "Re: MS SQL Server 2000 SP2 AV problem with pwdencrypt: possible buffer overflow"
- Previous message: Craig: "Run an SP as another user"
- In reply to: Craig: "Run an SP as another user"
- Next in thread: Ping Wang: "Re: Run an SP as another user"
- Reply: Ping Wang: "Re: Run an SP as another user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|