Re: Backup permission



"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns99B34D40347EYazorman@xxxxxxxxxxxx
Matthew (inetuser@xxxxxxxxxxx) writes:
I have just added to an application I am working on the ability for the
user to create a backup of the database the application is connected to.
The backup works just fine, but prior to the backup I'd like to be able
to check that the user has BACKUP DATABASE, BACKUP LOG and CHECKPOINT
privileges so they won't potentially get a nasty error back from the
database server.

Without know what you are doing, it's up to guesses, and the thought
comes into mind is that the test users are members of the sysadmin
role.

It could help if you posted a script that demonstrtes the problem.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

The roles my test user was a member of seem to have been the problem. Once
I made sure they were only a member of the public role, the GRANT and DENY
privilege commands were reflected in queries on the PERMISSIONS() function
and the fn_my_permissions stored procedure.


.



Relevant Pages

  • RE: Backups have Shadow Copy Problems
    ... with volume Shadow Copy error 800423f4. ... You back up data from a volume that contains a Microsoft SQL Server ... The recovery model of the SQL Server database is configured to use an ... It just ensures backup will continue without reporting the error. ...
    (microsoft.public.windows.server.sbs)
  • Re: Start SQLServerAgent job Synchronously
    ... Wayne Snyder, MCDBA, SQL Server MVP ... > call and the caller resumes processing as soon as the call is made. ... > I have a set of SQLServerAgent jobs, each of which runs a BACKUP DATABASE ...
    (microsoft.public.sqlserver.server)
  • Re: Start SQLServerAgent job Synchronously
    ... Wayne Snyder, MCDBA, SQL Server MVP ... > call and the caller resumes processing as soon as the call is made. ... > I have a set of SQLServerAgent jobs, each of which runs a BACKUP DATABASE ...
    (microsoft.public.sqlserver.programming)
  • Re: "Best Practices" way to distribute MSDE
    ... > Restore a users's selected backup. ... for dayly house-keeping I do usually provide scripted job for database ... that file copy operation (not SQL Server backup!) can be performed.. ... my personala advice is to perform dayly house-keeping actions ...
    (microsoft.public.sqlserver.msde)
  • Re: NT Backup Causes Server to Hang
    ... Thanks for using the SBS newsgroup. ... You back up data from a volume that contains a Microsoft SQL Server ... The recovery model of the SQL Server database is configured to use an ... It just ensures backup will continue without reporting the error. ...
    (microsoft.public.windows.server.sbs)