Solved

db owner vs sa

Posted on 2010-09-09
9
1,324 Views
Last Modified: 2012-05-10
is DB owner database role equivalent of SA for just that database?
0
Comment
Question by:anushahanna
[X]
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
  • 4
  • 4
9 Comments
 
LVL 3

Accepted Solution

by:
Marbleman earned 100 total points
ID: 33640029
Not really... sa is system administrator. You can add a user in the Security-Area and right click it -> select Propoerties.

There you'll see that the user can belong to server roles and on the Database-Access tab you can choose the databases that the user can access. Within this access you can put him into a database role (like db_owner) which means that the user is able to create tables and alter the database.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33640529
OK. What i meant is, just like sa has all permissions on the server (at the server level, and hence also at database level), db_owner has such privileges at a database level, right?

in other words, whatever a sa can do on a database, a db_owner can do the same in that database, right, in terms of permissions? they will have equal rights at that database, correct?
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 400 total points
ID: 33642541
Yes. But a dbo does not have the often needed overall access privileges to e.g. see the session list, or which locks are on "his" database. A dbo might not be able to change security, or create an database link to another server.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 400 total points
ID: 33642546
BTW, sa is an account, while dbo is a role. That's another difference, of course ;-).
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33646084
Qlemo, that is a good point that sa is a user/login, where as db_owner is something you give to a user/login. thanks.

the doc says db_owners can be do all configuration and maintenance activities on the database
http://msdn.microsoft.com/en-us/library/ms180977%28SQL.90%29.aspx

is there another reference of what exactly is and is not "configuration and maintenance activities on the database"

in your description, can you confirm i am co-relating correctly?
the session list - is that sp_who2?
locks - sp_lock?
not be able to change security - GRANT command?
database link to another server - Linked server?

thanks again.
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 400 total points
ID: 33647940
Yes.
sp_who2 might only display your own, current session.
The Session List (2000) or Activity Monitor (2005 and up) might not show all sessions or sessions at all.
Don't know exactly about sp_lock, but think has similar restrictions.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33648558
so db_owner has comprehensive privileges on the database, but not as much as sa, right?

there is no other role more 'powerful' than db_owner, that you can assign, just for a database, is there?
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 400 total points
ID: 33648881
If you ask for DB specific privs - db_owner is toplevel there.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33648985
Thanks Qlemo.
0

Featured Post

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS SQL Server connect issues 4 39
Database maintenance 36 101
SQL parsing XML works but want to do it another way 4 19
access to sql migration 5 23
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

756 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