473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

database owner?

aj
SQL Server 2005 SP2

What is the significance of the owner of a database being sa as
opposed to some administrative (or non-administrative) local login?

Should I favor one over the other?

Can I change the owner of a database?

TIA

aj
Jun 27 '08 #1
2 2668
aj (ro****@mcdonalds.com) writes:
SQL Server 2005 SP2

What is the significance of the owner of a database being sa as
opposed to some administrative (or non-administrative) local login?

Should I favor one over the other?
That depends on what the server and databases are used for. If you run a
web host, you probably want to make the clients owners of their own
databases.

If you are a DBA who runs a server with a couple of applications on them,
and you are responsible for them all, sa should be just fine.

A special consideration is if you need to enable cross-database chaining.
That is, if a user calls a procedure SP1 in database A, and SP1 accesses
objects in database B, and you don't want to the user to have direct
access to those objects, you need to enable DB chainging for these
databases, and you need make sure that A and B have the same owner. If
you then have have a second pair C and D, you may want to have different
owners for C and D, so that chaining is not possible from A to C.
Can I change the owner of a database?
ALTER AUTHORIZATION ON DATABASE::db TO someuser

If I remember the syntax correct. Else check Books Online for details.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Jun 27 '08 #2
What is the significance of the owner of a database being sa as
opposed to some administrative (or non-administrative) local login?
I agree with Erland that 'sa' is the best choice unless you have a reason to
do otherwise. I posted some of my other thoughts on the subject at
http://weblogs.sqlteam.com/dang/arch...-Troubles.aspx

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"aj" <ro****@mcdonalds.comwrote in message
news:to******************************@supernews.co m...
SQL Server 2005 SP2

What is the significance of the owner of a database being sa as
opposed to some administrative (or non-administrative) local login?

Should I favor one over the other?

Can I change the owner of a database?

TIA

aj
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sarah Tanembaum | last post by:
I was wondering if it is possible to create a secure database system using RDBMS(MySQL, Oracle, SQL*Server, PostgreSQL etc) and web scripting/programming language(Perl, PHP, Ruby, Java, ASP, etc)...
1
by: erin | last post by:
When I run: select * from testtable I get this error message: Invalid object name 'testtable'. However, if I run: select * from testuser.testtable
7
by: PC Datasheet | last post by:
Looking for suggestions ---- A database was designed for a national automobile inspection program. In it's simplest form, the database has two tables: TblOwner OwnerID <Year/Make/Model owned...
3
by: Dennis | last post by:
I have a database which has a field "myfield" that has a value "Owner's Text Book". I am trying to construct an sql query to find the record where myfield equals "Owner's Text Book". How do I...
1
by: Dan Rolfe | last post by:
Ok I just kinda stumbled upon an error I made when I was building this database. It is a multitable relational DB consisting of 2 levels of grouping. Here is a rough design view: Owner...
2
by: D | last post by:
If you secure an MSACCESS Database using a Workgroup Information File WIF and then setting up permissions removing the Admin user from the its default group, repalce it with another named user,...
6
by: mplpost | last post by:
Our web application requires that when a new Organization is created,a separate Database is to be created for the corresponding organization, so that each organization remains a separate entity...
8
by: aklein | last post by:
I was given a database to update and am running into the following problem: The database appears to have been secured using Access security (it is an MDB, not MDE). Every form etc that I try to...
1
by: atoy | last post by:
Good day, When i create a new blank database, when i go in the user group and permissions and then i click on change owner tab. I notice that the user Admin is always the current owner of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.