Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DB owner

Posted on 2010-08-20
4
528 Views
Last Modified: 2012-05-10
can there only be one DB owner for a DB or more?

thanks
0
Comment
Question by:anushahanna
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
Marten Rune earned 333 total points
ID: 33484962
Only one DBO
But you can have many users with the DB_Owner role
0
 
LVL 9

Assisted Solution

by:Darksquire
Darksquire earned 167 total points
ID: 33484974
The dbo is a user that has implied permissions to perform all activities in the database. Any member of the sysadmin fixed server role who uses a database is mapped to the special user inside each database called dbo. Also, any object created by any member of the sysadmin fixed server role belongs to dbo automatically.

from here:
http://msdn.microsoft.com/en-us/library/aa905208(SQL.80).aspx
0
 
LVL 20

Assisted Solution

by:Marten Rune
Marten Rune earned 333 total points
ID: 33485940
Though there are some applications out there wich checks, and demands that the accunt is the DBO account.

True is that sysadmin users automatically has the DB_Owner role, but the difference between users granted DB_Owner and DBO is that the dbo user cannot be deleted and one DBO is always present in every database.

So if you ask if there can only be one DBO in the database the answer is yes, and furthermore the DBO can not be deleted from the database. Although you can replace the DBO with another account which then becomes the DBO. Any DB_Owner can do this, command: EXEC sp_changedbowner 'DesiredDBOAccount'

Regards Marten
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33510888
Thanks experts.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL SERVER - Index skipped a number 2 26
sql server query 12 25
SQLCMD Syntax 2 13
MS SQL + group by time 4 14
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question