Re: Security context of stored procedure
From: SQL Dude (noreturn_at_hotmail.com)
Date: 03/02/04
- Next message: Baisong Wei[MSFT]: "RE: Security context of stored procedure"
- Previous message: SQL Dude: "Re: Removing Guest and BUILTIN\Administrator accounts"
- In reply to: A.M: "Security context of stored procedure"
- Next in thread: Baisong Wei[MSFT]: "RE: Security context of stored procedure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 1 Mar 2004 19:10:44 -0800
The user id of stored proc 1 is the owner of the sp.
Look in enterprise manager, list the procedures, there is a column for the
owner. it is recommended that all objects be owned by dbo, so my guess from
here is that the stored proc is dbo.StoredProc1, owned by dbo. If the proc
lists the contents of the table, then anyone with execute permissions can
run the proc and list the contents of the table. If you don't want this,
consider creating more than one proc, some that expose less of the table to
users that don't need to list the entire table.
Bill
"A.M" <IHateSpam@sapm123.com> wrote in message
news:ejI5HJ%23$DHA.552@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I underestand that if UserA don't have access to Table1 but have access to
> StoredProc1, and StoredProc1 lists the content of Table1, then UserA can
> execute StoredProc1 and have Table1 listed.
>
> I also know this is prefered way to impliment security, so applications
> won't have direct access to sensetive tables.
>
> My question is if StoredProc1 is being run by UserA, What is the security
> context of StoredProc1? What is the UserId of StoredProc1? Can scripts in
> StoredProc1 manimpulate all tables in database?
>
> Any help would be apprecited,
> Ali
>
>
- Next message: Baisong Wei[MSFT]: "RE: Security context of stored procedure"
- Previous message: SQL Dude: "Re: Removing Guest and BUILTIN\Administrator accounts"
- In reply to: A.M: "Security context of stored procedure"
- Next in thread: Baisong Wei[MSFT]: "RE: Security context of stored procedure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|