OS admin can't backup

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?
LVL 6
anushahannaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
dbaSQLConnect With a Mentor Commented:
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
 
LowfatspreadConnect With a Mentor Commented:
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
 
ThakurVinayConnect With a Mentor Commented:
grant explicite access(add user) into sql server security.

HTH
Vinay
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
OP_ZaharinConnect With a Mentor Commented:
-create user "POSRESTEST" in SQL Server and grant access to the "TRACKER" database.
0
 
lcohanConnect With a Mentor Database AnalystCommented:
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
 
lcohanConnect With a Mentor Database AnalystCommented:
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
 
anushahannaAuthor Commented:
thanks very much.
0
All Courses

From novice to tech pro — start learning today.