Re: Help pls: Not allow users access to tables, stored procedures only




"Ben" <ben_1_ AT hotmail DOT com> wrote in message news:60FD4599-B496-4C65-A863-8D8ADD8D72E9@xxxxxxxxxxxxxxxx
Hello

I have created a database where all the functionality (add, delete, select,
update, etc) is performed via stored procedures. The front end (ASP.NET
application) runs the stored procedures. The problem we have run into is
that when we set up a role for ALL users to have which ONLY has exec
permissions on the stored procedures, we get errors saying we dont have the
correct permission for select permission on the tables. We have been able to
set this up before on other apps, and for the life of us, cannot figure it
out for this one. All the db settings look the same but the stored
procedures see to requir the users to also have select permission on the
tables.



Check out Ownership Chains in BOL. http://msdn2.microsoft.com/en-us/library/ms188676.aspx

Granting execute on a proc will supress permission checks on objects owned by the owner of the procedure.

Probably you do not have intact ownership chains from the procedures to the tables.

David

.



Relevant Pages

  • Re: Help pls: Not allow users access to tables, stored procedures
    ... Are using dynamic SQL inside the stored procedures? ... correct permission for select permission on the tables. ... Probably you do not have intact ownership chains from the procedures to ...
    (microsoft.public.sqlserver.security)
  • Re: Help pls: Not allow users access to tables, stored procedures
    ... "Dan Guzman" wrote: ... Dynamic SQL effectively breaks the ownership chain. ... etc) is performed via stored procedures. ... correct permission for select permission on the tables. ...
    (microsoft.public.sqlserver.security)
  • Re: Help pls: Not allow users access to tables, stored procedures
    ... Are all the objects in the same database? ... If not, cross-database chaining ... etc) is performed via stored procedures. ... correct permission for select permission on the tables. ...
    (microsoft.public.sqlserver.security)
  • REmote Debugging from Visual Std. 2003 env
    ... "Cannot debug stored procedures because the SQL Server database is not setup ... correctly or user does not have permission to execute master.sp_sdidebug." ... I have configured DCOM on the remote sql server according tothe MSDN ... I have added SQLDebugger account to default permissions in dcom. ...
    (microsoft.public.sqlserver.clients)
  • Re: Remote SP debugging from VS 2003: error
    ... "Cannot debug stored procedures because the SQL Server database is not setup ... correctly or user does not have permission to execute master.sp_sdidebug." ... I have configured DCOM on the remote sql server according tothe MSDN ... I have added SQLDebugger account to default permissions in dcom. ...
    (microsoft.public.sqlserver.security)