Solved

OS admin can't backup

Posted on 2011-03-08
7
703 Views
Last Modified: 2012-05-11
The service account (SQL) is a OS admin, but that does not allow it to do backup? the error message is
--------------------
Msg 916, Level 14, State 1, Line 2
The server principal "SRBSV\POSRESTEST" is not able to access the database "TRACKER" under the current security context.
Msg 3013, Level 16, State 1, Line 2
BACKUP DATABASE is terminating abnormally.
-------------------

being a OS admin - does it give any privilege in SQL Server?

what permission will this service account need to be able to do backup/restore?
0
Comment
Question by:anushahanna
7 Comments
 
LVL 17

Accepted Solution

by:
dbaSQL earned 84 total points
ID: 35078332
OS Admin and SQL Admin are two very different things....  
Why don't you place into the db_backupoperator role.  See Dataabase-Level Roles in BOL:

db_backupoperator
 Members of the db_backupoperator fixed database role can back up the database.
 
0
 
LVL 50

Assisted Solution

by:Lowfatspread
Lowfatspread earned 83 total points
ID: 35079604
from sql 2008 builtin\admin is no longer automatically given access ...

You have to decide who and  what requires access and grant them the appropiate priveleges...

0
 
LVL 5

Assisted Solution

by:ThakurVinay
ThakurVinay earned 83 total points
ID: 35080009
grant explicite access(add user) into sql server security.

HTH
Vinay
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 23

Assisted Solution

by:OP_Zaharin
OP_Zaharin earned 84 total points
ID: 35080150
-create user "POSRESTEST" in SQL Server and grant access to the "TRACKER" database.
0
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 166 total points
ID: 35097900
db_backupoperator will let you backup a database and T-log sp_dbfixedrolepermission to see all rights in the database

but for restore you need more so that account needs to be at least server role - 'dbcreator'

you can check permissions for that by running

EXEC sp_srvrolepermission 'dbcreator';
0
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 166 total points
ID: 35097949
It's kind of odd they did it like this and other than sysadmin there's not a single role that gives backup/restore capabilities but if you grant the two - db_backupoperator at db level and dbcreator at server level to that NT user starting your SQL SErver Sevrice then you have minimum granted rights. Other than that you could use sysadmin sql server fixed role.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 35141547
thanks very much.
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

776 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