Re: Stored proc select denied error
From: Jeremy Chapman (NoSpam_at_Please.com)
Date: 06/04/04
- Next message: Prabhat: "DTS Error 1st Time"
- Previous message: Anith Sen: "Re: Horizontal to vertical with distinct"
- In reply to: Gregory A. Larsen: "Re: Stored proc select denied error"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 4 Jun 2004 09:15:48 -0700
Thanks, that fixed it. I allowed cross database ownership chaining on the
two databases in question.
"Gregory A. Larsen" <greg.larsen@netzero.com> wrote in message
news:uoe1nbPSEHA.2976@TK2MSFTNGP10.phx.gbl...
> You problem has to do with cross-database ownership chaining. You need to
> enable cross-database ownership changing. Read this KB article to explain
> more about this problem and how to resolve.
>
>
http://support.microsoft.com/default.aspx?scid=kb;en-us;810474&Product=sql2k
> --
>
> --------------------------------------------------------------------------
-- > -------------------------------------------------------------------------- -- > ---- > > Need SQL Server Examples check out my website at > http://www.geocities.com/sqlserverexamples > "Jeremy Chapman" <NoSpam@Please.com> wrote in message > news:ubKScJPSEHA.2704@TK2MSFTNGP10.phx.gbl... > > I two databases on the same server. I'm logged in with a user that has > > access to both databases. The user has no select/delete/update rights to > > any tables. On the first database the user has exec rights to a stored > > procedure. That stored procedure selects * from two tables with a join. > 1 > > table is on the first database, the other table is on the second database. > > When I fire the stored procedure I get a server error 'Server: Msg 229, > > Level 14, State 5, ...' and the object it is complaning about is > > database2.dbo.table2 > > > > The only solution I have found is to enable select access for the user on > > database2.dbo.table2 but my intention was to only allow access to tables > > through stored procedures. Is there any other way to allow the stored > > procedure to select from the table on the 2nd database? > > > > > >
- Next message: Prabhat: "DTS Error 1st Time"
- Previous message: Anith Sen: "Re: Horizontal to vertical with distinct"
- In reply to: Gregory A. Larsen: "Re: Stored proc select denied error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|