Solved

non SA owned databases

Posted on 2014-04-10
6
209 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

685 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