Re: Permission denied in table yet allowed access in Sproc but still no access
From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 08/25/04
- Next message: LB: "Re: subquery not returning all rows?"
- Previous message: KPiszcz: "Re: How do I Convert a Date/Time Field to Just a Date Field?"
- In reply to: ryu: "Re: Permission denied in table yet allowed access in Sproc but still no access"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 08:07:46 -0500
Dynamic SQL breaks the ownership chain so permissions on the referenced
tables are needed in that case. Also, if the objects are in different
databases, both databases need to have the same owner and cross-database
chaining needs to be enabled for those databases.
-- Hope this helps. Dan Guzman SQL Server MVP "ryu" <blizzardstorm8899@yahoo.com> wrote in message news:%235V2F4oiEHA.632@TK2MSFTNGP12.phx.gbl... > I have checked. The owner for both obj is dbo > > "Graeme Malcolm" <graemem_cm@hotmail.com> wrote in message > news:uxJwHsoiEHA.3876@TK2MSFTNGP12.phx.gbl... > > Is the base table owned by the same user as the sproc? SQL Server checks > > permissions at each break in the ownership chain, so if the owners are > > different then the permissions on the base table would be applied. > > > > Cheers, > > Graeme > > -- > > ---- > > Graeme Malcolm > > Principal Technologist > > Content Master Ltd. > > www.contentmaster.com > > > > > > "Ryu" <blizzardstorm8899@yahoo.com> wrote in message > > news:%23yl6zfoiEHA.1356@TK2MSFTNGP09.phx.gbl... > > Hi all, > > > > I understand that when I am denied access from the table but given the > > right > > permission in a sproc accessing the table, I am still able to access the > > table. However > > I have a table which I am denied access but given the correct permission > > yet > > I am still not able to access. I have checked the roles and they seem > > fine. > > What else can I check? > > > > > > > > > >
- Next message: LB: "Re: subquery not returning all rows?"
- Previous message: KPiszcz: "Re: How do I Convert a Date/Time Field to Just a Date Field?"
- In reply to: ryu: "Re: Permission denied in table yet allowed access in Sproc but still no access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|