We have a huge instance of sharepoint 2010. Sharepoint 2010 uses multiple databases so I had to write some code to loop through each database to perform a backup.Something to this effect:--Does Backup of all the databases except system databases DECLARE @cmd1 nvarchar(4000) --change cmd1 to include any database that you DON'T want backed up. SET @cmd1 = 'IF ''?'' NOT IN(''master'', ''model'', ''DBA'', ''tempdb'', ''msdb'')' + 'BEGIN ' + 'Print ''Backing up ? database...'';' + 'BACKUP DATABASE [ ? ] TO DISK=''' + 'L:\Backups\SP2010\?_' + replace(convert(varchar,GETDATE(),120),':','') + '.bak'' WITH RETAINDAYS=21' + 'BACKUP LOG [ ? ] TO DISK=''' + 'L:\Logs\Databases\SP2010\?_LOG_' + replace(convert(varchar,GETDATE(),120),':','') + '.ldf''' + 'END' EXEC sp_MSForEachdb @command1 = @cmd1 If I right click this (I've made it as a stored procedure) and click execute it runs fine and I see the backup files in the L:\ drive. However, I then created a job with one simple step in it to "EXEC mySproc" where mySproc is the code above, it says the job completed successfully but there are no files on the local L drive of this server. I tried to set it up using "Run as User: dbo" but the issue is it says the job completed successfully but as mentioned no physical files. I also tried using a domain admin account but it keeps failing in this case:"Executed as user: ah\administrator. The SELECT permission was denied on the object 'sysdatabases', database 'mssqlsystemresource', schema 'sys'. [SQLSTATE 42000] (Error 229). The step failed."Weblog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]