Re: Stored Proc rights and joinning to another database

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 02/26/04


Date: Thu, 26 Feb 2004 16:30:27 +0100

If the databases and tables has the same owner, you can get by. But that
requires lowering the security. As of sp3, you have to enable cross-database
chaining in order to allow this. See the readme for sp3 for more
information.

-- 
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Joel" <anonymous@discussions.microsoft.com> wrote in message
news:E0E6F54C-04AC-49AB-AF07-744521B83C1F@microsoft.com...
> Hi! I have a little problem with one of my Stored Proc. I don't give any
rights to my users on tables but I give execute rights on my Stored
Procedures. I'm doing a join on another database (dbo.Orders inner join
MS.dbo.Employee) in my stored proc but I have to give Select rights to my
users on the table and I don't want to do that. Is there another solution?
> Thanks Joel :)
>


Relevant Pages

  • Re: Query Design View Application Error
    ... >I have no problem opening up existing databases and creating new ones. ... How are you updating to SP3? ... I know my attempts to install SP3 on SQL Server ...
    (microsoft.public.access.queries)
  • RE: Users on a DB are dropped without any intervention
    ... This posting is provided “AS IS” with no warranties, and confers no rights. ... For information about the Microsoft Strategic Technology ... Protection Program and to order your FREE Security Tool Kit, ... | rights in a couple of the databases that they had rights ...
    (microsoft.public.sqlserver.security)
  • Re: Moving SQL Server 2005 databases
    ... If all the logins are successfully created by following the procedure you point to, the logins will connect with the users in the databases and the rights will be retained. ... If any of the logins have server rights in addition to database rights, those will need to be scripted and reapplied. ...
    (microsoft.public.sqlserver.setup)
  • Re: Revoking public permissions
    ... We have many databases with all rights to user tables, views, stored ... (I have never tried to revoke public rights to the ... the public role in the system databases. ...
    (microsoft.public.sqlserver.security)
  • Re: Object browser or database dropdown in Query Analyzer freezes
    ... I expect it's a rights issue on the SQL Server itself. ... Each login is granted rights to the objects including the list of databases. ... Generally this prevents getting a connection so perhaps your login has rights to Views or SPs but not to the other objects. ...
    (microsoft.public.sqlserver.connect)