| Author |
Message |
Mindflux
Joined: 22 Aug 2006 Posts: 35
|
Posted: Fri Oct 02, 2009 6:12 pm Post subject: Cannot backup server 2008? |
|
|
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 |
|
 |
Mindflux
Joined: 22 Aug 2006 Posts: 35
|
Posted: Fri Oct 02, 2009 7:42 pm Post subject: |
|
|
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 |
|
 |
Mindflux
Joined: 22 Aug 2006 Posts: 35
|
Posted: Fri Oct 02, 2009 8:07 pm Post subject: |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Sat Oct 03, 2009 11:16 am Post subject: |
|
|
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".." |
_________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
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