Solved

non SA owned databases

Posted on 2014-04-10
6
207 Views
Last Modified: 2014-04-29
Are there any issues with databases not being  owned by SA? I have just seen a healthcheck script which flags it as an issue if the database isnt owned by the default SA account? Why so, what are the risks?

For clarity, is there an easy way to identify which account owns which database via SQL?
0
Comment
Question by:pma111
6 Comments
 
LVL 25

Accepted Solution

by:
Tony Giangreco earned 167 total points
ID: 39991541
Your backup app may have a problem with it. Have you address that?
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 167 total points
ID: 39991547
if you deleted the login which is the owner of the database, you would then have to perform a db owner change.

backup software shall use "some" account with sys_adm powers, which is the equivalent in regards to "power" as sa account.
0
 
LVL 3

Author Comment

by:pma111
ID: 39991580
So in all if the db owner account has sa permissions and is never disabled/removed in AD, there is no issue?
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:Scott Pletcher
Scott Pletcher earned 166 total points
ID: 39992073
>> For clarity, is there an easy way to identify which account owns which database via SQL? <<

Yes: the sys.databases view provides the owner_sid for every db.  You can use that value to join to sys.database_principals to get the name of the login.


SELECT d.name, sp.name AS owner_name
FROM sys.databases d
LEFT OUTER JOIN sys.server_principals sp ON
    sp.sid = d.owner_sid
0
 
LVL 3

Author Comment

by:pma111
ID: 40003608
So in all if the db owner account has sa permissions and is never disabled/removed in AD, there is no issue?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40003822
exactly
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

829 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