Solved

OS admin can't backup

Posted on 2011-03-08
7
691 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

758 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now