473,770 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2682
aj (ro****@mcdonal ds.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****@sommarsk og.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****@mcdonal ds.comwrote in message
news:to******** *************** *******@superne ws.com...
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
3136
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) combination? I have the following in mind: I wanted to store all my( and my brothers and sisters) important document information such as birth certificate, SSN, passport number, travel documents, insurance(car, home, etc) document, and other...
1
3274
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
2431
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 by owner, Owner name/address, etc) TblInspection InspectionID
3
1157
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 get the Sql query to accept the single quote as part of the string I'm looking for,i.e., Select * FROM myTable WHERE myfield = 'Owner's Text Book'. The OLEDB query command interprets the ' in Owner's as a delimiter. -- Dennis in Houston
1
1482
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 ---Date Ordered -------Parts Ordered & Flags
2
1847
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, transfer all the ownership of objects to the new user. Then run the database security wizard. If after this the mdb file is placed on a different users PC which is still using the defauult system.mdw file should they still be able to open the...
6
5114
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 with their corresponding employees(This is our clients requirement, so that they can later provide the backup of the database if the organization decides to move out). And for that what we intend to do is restore the backup of database which already...
8
2786
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 open (in the development environment) gives me 2 messages: 1) "You do not have exclusive access to the database at this time etc." 2) "You don't have permission to read frmWhatever... etc."
1
1877
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 database. Some one can tell me what i have to do to set as the current owner of a database, when i create a new blank database ? Thanks.
0
10254
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8929
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.