Re: Cross DB ownership chaining problem

From: Ale (agaio_at_econ.uba.ar)
Date: 07/11/03


Date: Fri, 11 Jul 2003 08:04:13 -0300


Thanks Dan for your reply.
Unfortunately, all the databases are owned by dbo (sa), that's what leave me
disoriented.
About turning the option at the server level, I did that as a last resort
since changing each of the databases hadn't work at all.
Do you have any other suggestion?
Thanks again!

"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message
news:uy2Xo1zRDHA.2676@TK2MSFTNGP10.phx.gbl...
> Assuming your objects are owned by dbo, a likely cause of this problem
> is that the owner of database D is different than the other databases.
> The different database owner result in a broken ownership chain with
> dbo-owned objects. You can change the owner of database D using
> sp_changedbowner:
>
> USE DatabaseD
> EXEC sp_changedbowner 'sa' --specify owner of other databases
> GO
>
> BTW, you don't need to turn on cross-database chaining at the server
> level (sp_configure 'Cross DB Ownership Chaining') unless you want the
> option enabled for all databases, Turning it on at the database level
> (sp_dboption 'db chaining') for databases A, B, C and D is sufficient.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> -----------------------
> SQL FAQ links (courtesy Neil Pike):
>
> http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
> http://www.sqlserverfaq.com
> http://www.mssqlserver.com/faq
> -----------------------
>
> "Ale" <agaio@econ.uba.ar> wrote in message
> news:OFTRWxuRDHA.2852@tk2msftngp13.phx.gbl...
> > Hi all,
> >
> > We're having an issue since we installed SP3 to one of our SQLServers.
> > The server had 3 databases, A, B and C which were imported with DTS
> from
> > another SQLServer (before the SP3 was installed)
> > Database A has some stored procedures that reference tables in B, C,
> and
> > also D (which wasn't imported by that time).
> >
> > After the application of the service pack, I turned on the option of
> cross
> > DB ownership chaining for the server, and for each of the databases in
> it
> > (A, B and C)
> > All of the user stored procedures of database A work fine (including
> those
> > that reference tables in B and C), but yesterday I imported the
> missing
> > database (D) from another SQLServer, also with DTS.
> > After the import, I enabled the cross DB ownership chaining option for
> that
> > DB.
> > The stored procedures in database A that reference this new imported
> DB (D)
> > don't run. SQL Server always throws an 'Select permission denied on
> table
> > XXX'.
> > The problem happens with users other than the SA. With SA all the SPs
> work.
> > I double-checked the Cross ownership settings in the server and each
> DB and
> > everything seems to be all right.
> > I tried also restaring the service, but it didn't work.
> > Does anyone have any clue about this problem?
> > Thanks in advance for your support
> > Alex
> >
> >
>
>



Relevant Pages

  • Create SharePoint Portal failed.
    ... One mentioned ensuring that SQL Server uses a case ... 13:55:40 Service database server is 'USDC-JOHRIV'. ... Update dbo.propertylist set DisplayName = N'Last name' ...
    (microsoft.public.sharepoint.portalserver)
  • Re: ADO Connection Timeout
    ... to the central server, but you are willing to live with periods where it ... i.e. a local database or even a text file. ... to function until the connection can be restored to the server. ...
    (microsoft.public.data.ado)
  • Web Developers - Happy Hearts And HDTV! - Lockergnome
    ... Certificate on your MSIIS Web server. ... getting data from a database is only half the problem. ... Zend recently started a series about building rock solid code in PHP. ... which provides bulk database conversion. ...
    (freebsd-questions)
  • Re: TNS could not resolve the connect identifier
    ... This database resides on Machine A. ... The Web server is running on Machine B. ... Using tnsping is not as good as using a real connection such as via ... client (note that this is terminology that appears in the 10g R2 ...
    (comp.databases.oracle.server)
  • Config for OLTP system
    ... extrenal disks fo the 60GByte database server. ... IBM Informix Dynamic Server Configuration Parameters ... # BUFFSIZE - OnLine no longer supports this configuration parameter. ...
    (comp.databases.informix)

Loading