Re: Who should I make the owner?
From: Kalen Delaney (replies_at_public_newsgroups.com)
Date: 01/01/05
- Next message: Dave Patrick: "Re: Registry editing has been disabled by your Administrator"
- Previous message: KDB Systems: "Re: Windows Backup and Screen Saver Password"
- In reply to: thechaosengine: "Re: Who should I make the owner?"
- Next in thread: thechaosengine: "Re: Who should I make the owner?"
- Reply: thechaosengine: "Re: Who should I make the owner?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 1 Jan 2005 08:42:19 -0800
Sa is a login name. DBO is a user name in a database. You can read about the
difference between logins and users in the Books Online.
Every login gets mapped to a username in every database they have access to.
Sometimes the login name and the user name are the same string, so a login
sue could be user sue in one or more databases.
DBO is a special user name that exists in every database. Sa, and any login
in the sysadmin role, automatically get mapped to the dbo user name in EVERY
database. Also, the login listed in sysdatabases as the owner of the
database has the user name DBO in that database. I strongly suggest you try
NOT to think of DBO as meaning 'database owner' since many different logins
can map to that user name. Just think of DBO as another user name.
The user DBO has special privileges in a database, which you can read about
in the Books Online. In addition to the privileges the dbo user has, any
object owned by the dbo user can be accessed without specifying the owner
name, but it's actually recommended that you always specify the owner name
for any object:
select column1, column2, ...
from dbo.mytable
-- HTH ---------------- Kalen Delaney SQL Server MVP www.SolidQualityLearning.com "thechaosengine" <na> wrote in message news:eExLldA8EHA.1408@TK2MSFTNGP10.phx.gbl... > OK thanks for that. > > Can you tell me what the significance of dbo is? Is that a special account > for just this purpose? > > Thanks >
- Next message: Dave Patrick: "Re: Registry editing has been disabled by your Administrator"
- Previous message: KDB Systems: "Re: Windows Backup and Screen Saver Password"
- In reply to: thechaosengine: "Re: Who should I make the owner?"
- Next in thread: thechaosengine: "Re: Who should I make the owner?"
- Reply: thechaosengine: "Re: Who should I make the owner?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|