[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 728
  • Last Modified:

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?
0
anushahanna
Asked:
anushahanna
6 Solutions
 
dbaSQLCommented:
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
 
LowfatspreadCommented:
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
 
ThakurVinayCommented:
grant explicite access(add user) into sql server security.

HTH
Vinay
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
OP_ZaharinCommented:
-create user "POSRESTEST" in SQL Server and grant access to the "TRACKER" database.
0
 
lcohanDatabase 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
 
lcohanDatabase 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

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Tackle projects and never again get stuck behind a technical roadblock.
Join Now