Red Gate forums :: View topic - Cannot backup server 2008?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Backup Previous Versions
SQL Backup Previous Versions forum

Cannot backup server 2008?

Search in SQL Backup Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Mindflux



Joined: 22 Aug 2006
Posts: 35

PostPosted: Fri Oct 02, 2009 6:12 pm    Post subject: Cannot backup server 2008? Reply with quote

10/2/2009 12:09:45 PM: Backing up master (full database) to:
10/2/2009 12:09:45 PM: C:\SQLBACKUP\DAILY\DB\FULL_(local)_master_20091002_120945.sqb

10/2/2009 12:09:45 PM: Error 880: BACKUP DATABASE permission denied in database: (master)
10/2/2009 12:09:45 PM: SQL error 15157: Setuser failed because of one of the following reasons: the database principal 'NT AUTHORITY\NETWORK SERVICE' does not exist, its corresponding server principal does not have server access, this type of database principal cannot be impersonated, or you do not have permission.
--------------------------------------------------------------------------------

I can back up by right clicking the DB, and running backup as it runs as DOMAIN\administrator, but when executing the scheduled backup scripts I get error messages like this.
Back to top
View user's profile Send private message
Mindflux



Joined: 22 Aug 2006
Posts: 35

PostPosted: Fri Oct 02, 2009 7:42 pm    Post subject: Reply with quote

I tried using the stored procedures listed here:

http://help.red-gate.com/help/SQLBackup5/3/en/SQLBackup.htm

to change the authentication, with no luck. I then removed the ServerCore install and re-installed it entering my domain credentials. However the backups still fire off as NT Authority\NETWORK SERVICE

The SQL Backup Agent is running under Domain\Administrator as well.
Back to top
View user's profile Send private message
Mindflux



Joined: 22 Aug 2006
Posts: 35

PostPosted: Fri Oct 02, 2009 8:07 pm    Post subject: Reply with quote

Ok doke. I can run the script out of a Query Analyzer logged in with windows authentication.

EXECUTE master..sqlbackup N'-SQL "BACKUP DATABASE [XYZ] TO DISK = ''C:\SQLBACKUP\DAILY\DB\<AUTO>.sqb'' WITH COMPRESSION = 1, ERASEFILES_ATSTART = 5, INIT, MAILTO = ''me@domain.com'', THREADCOUNT = 4, VERIFY"'


That works great, so somewhere.. the script is executing under the wrong permissions from SQLBackupC.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6588

PostPosted: Sat Oct 03, 2009 11:16 am    Post subject: Reply with quote

Hi,

I've recently run into an issue with Vista and SQL Compare that may be relevant, where RunAs doesn't pass Windows credentials over the network. You can try the workaround for SqlBackupc.exe, which would be to use RunAs with the /netonly switch:
Code:
RunAs /user:myUser /netonly sqlbackupc.exe -SQL".."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group