Cross-database ownership with different dbo

From: Aidar (aidar_at_onyx-pharm.ru)
Date: 08/29/03


Date: Fri, 29 Aug 2003 11:47:13 +0400


We have several databases within a single instance of SQL Server SP3a.
Cross-database ownership is enabled for the instance. If we look into
'Users' container in Enterprise Manager we can see, that in most databses
[dbo] user does not have a corresponding login (the field is blank).
Cross-databse ownership works fine between these databases.
Recently I have greated a new database [Assets]. In this database user [dbo]
has a corresponding login - "DOMAIN\aidar" - member of [sysadmin] fixed
role. The cross-database ownership does not work between [Assets] and other
databases.
It seems, that SQL Server thinks, that these databases have different
owners.
Does anybody know, in which cases SQL Server creates databases with blank
login corresponding to [dbo] user, and in which cases it assigns login of
current user to [dbo] user?
What is the best way to enable cross-database ownership in this case:
manually delete corresponding login from [dbo] user in database [Assets] or
assign my login "DOMAIN\aidar" to [dbo] user in each database that
participates in cross-database ownership?

Thanks for any answer.



Relevant Pages

  • Re: Two DB Owners
    ... full permissions in all databases. ... Note that the user will still be known as the 'dbo' user as long as the ... I need to add the login 'BUILTIN\Administrators' ... > 'DYNGRP' and 'BFGROUP' roles of the Dynamics and DAVCatalog databases. ...
    (microsoft.public.sqlserver.security)
  • Re: Remove/Add BUILTINAdministrators 2000 sp4
    ... detected that this login has permissions....etc this login ... be mapped to dbo. ... sysusers in the user databases and syslogins in master. ... I have seen a windows group referred to as a LOGIN for sql server in the ...
    (microsoft.public.sqlserver.security)
  • Re: Remove/Add BUILTINAdministrators 2000 sp4
    ... any of the databases. ... exist anywhere in sql server either. ... detected that this login has permissions....etc this login ... be mapped to dbo. ...
    (microsoft.public.sqlserver.security)
  • Re: Remove/Add BUILTINAdministrators 2000 sp4
    ... Server, it some how knows that on this server, it use to be the dbo in all ... the databases, and so it makes it dbo on all databases again. ... via this LOGIN ...
    (microsoft.public.sqlserver.security)
  • Re: Remove/Add BUILTINAdministrators 2000 sp4
    ... I have seen a windows group referred to as a LOGIN for sql server in the ... the databases, and so it makes it dbo on all databases again. ...
    (microsoft.public.sqlserver.security)