Re: Viewing object owner in SQL 2005 - ownership chaining



Wayne Erfling (wayne_erfling@xxxxxxxxxxxxxx) writes:
One question in particular remains in my mind:
I see that the owner is not the schema itself, so it must be a USER
entity, or a LOGIN entity, or some dynamic combination of them (e.g.
join the user to the current login and make the comparision based on
the login).

The owner of a database object is a database principal. A database
principal is a user, a role, an application role or a Windows group.

The owner of a server-level object such as a database, is a server
principal, of which a login is the prime example.

A database principal often maps to a server principal, for instance if
you do:

CREATE LOGIN svante WITH PASSWORD = 'sture'
go
USE somedb
go
CREATE USER svante

There is now a login, which can access the database somedb. He is known
as svante both at server level and in the database. This is convenient,
but the mapping itself is on a SID, and the names could be different



--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Install MSDE w/ MSDE Depl.Toolkit. What permissions when using Win Auth?
    ... I created a login using Enterprise Manager on SQL Server on my server. ... Database Access tab I ticked the tick box for the database that I ... Now when my user installed the MSDE database on his machine locally, ...
    (microsoft.public.sqlserver.msde)
  • Re: Installation OK, but cant connect
    ... > created an access database. ... SQL Server authentication is "client" independent.... ... connections or SQL Server authenticated connections... ... which authenticate user's login at the windows login step... ...
    (microsoft.public.sqlserver.msde)
  • Re: Setting up Linked server to MsAccess
    ... At the server level I have added my windows user group ... At the database level I have added my Server login ...
    (microsoft.public.sqlserver.security)
  • Re: SQL2005: Cannot connect error 11001
    ... user mapped to one database. ... Does the issue has to do with the login account / user ... Server connection. ... if you changed the port ...
    (microsoft.public.sqlserver.connect)
  • Re: conflicting object names in sql server 2000
    ... The owner of the object will depend on the user ... On the local database server when it does the select * from ... she must specify the owner: ...
    (microsoft.public.sqlserver.server)