﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / Job Failed. / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 09:57:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Job Failed.</title><link>http://www.sqlservercentral.com/Forums/Topic984554-1550-1.aspx</link><description>Thanks for your post. As Dave alluded to with his Google search, the problem is that you're trying to overwrite a file with the same name. If you take a look at the below link and search for error code 510, you'll see the definition of the error:http://www.red-gate.com/supportcenter/Content/SQL_Backup/help/7.2/SBU_ErrorcodereferenceYou probably want to add additional tags to your T-SQL command, so the file is named automatically on a date / time basis. Something like the below should work for you:DECLARE @exitcode intDECLARE @sqlerrorcode intEXECUTE master..sqlbackup N'-SQL "BACKUP DATABASE [OnlineLogging] TO DISK = ''X:\Backup\&amp;lt;database&amp;gt;\&amp;lt;AUTO&amp;gt;.sqb'' WITH COMPRESSION = 2, ERASEFILES_ATSTART = 10, MAILTO_ONERROR = ''sqladmin@snl.com'', MAXTRANSFERSIZE = 262144, THREADPRIORITY = 1, THREADCOUNT = 4"', @exitcode OUT, @sqlerrorcode OUTIF (@exitcode &amp;gt;= 500) OR (@sqlerrorcode &amp;lt;&amp;gt; 0)BEGINRAISERROR ('SQL Backup failed with exit code: %d SQL error code: %d', 16, 1, @exitcode, @sqlerrorcode)ENDHTH!PetePeter PeartRed Gate Software, Ltd.</description><pubDate>Wed, 12 Sep 2012 02:40:12 GMT</pubDate><dc:creator>Peter Peart</dc:creator></item><item><title>RE: Job Failed.</title><link>http://www.sqlservercentral.com/Forums/Topic984554-1550-1.aspx</link><description>Did you check on any logs from SQL backup, and not just the job?If the product has expired, it should throw an error, but I'm not sure if this is the one it sends. I've sent a note to Red Gate Support.</description><pubDate>Tue, 11 Sep 2012 13:28:49 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Job Failed.</title><link>http://www.sqlservercentral.com/Forums/Topic984554-1550-1.aspx</link><description>Possibly , try this [url]http://tinyurl.com/2acrnjh[/url]</description><pubDate>Mon, 13 Sep 2010 03:16:28 GMT</pubDate><dc:creator>Dave Ballantyne</dc:creator></item><item><title>RE: Job Failed.</title><link>http://www.sqlservercentral.com/Forums/Topic984554-1550-1.aspx</link><description>Hi DaveYes it is a Red Gate backup.Do you think so it might happen because of expiry of Red Gate?</description><pubDate>Mon, 13 Sep 2010 03:05:50 GMT</pubDate><dc:creator>EasyBoy</dc:creator></item><item><title>RE: Job Failed.</title><link>http://www.sqlservercentral.com/Forums/Topic984554-1550-1.aspx</link><description>master..sqlbackup is not a standard procedure so cant really comment to much on your exact problem.It this the red gate SQLBackup ?Error 510 is generally associated with networking errors.  Are all networked drives etc visible ?</description><pubDate>Mon, 13 Sep 2010 03:03:48 GMT</pubDate><dc:creator>Dave Ballantyne</dc:creator></item><item><title>Job Failed.</title><link>http://www.sqlservercentral.com/Forums/Topic984554-1550-1.aspx</link><description>While i was starting the job i got following error.JOB RUN:	'Full OnlineLogging' was run on 9/13/2010 at 3:03:52 AMDURATION:	0 hours, 0 minutes, 0 secondsSTATUS: 	FailedMESSAGES:	The job failed.  The Job was invoked by User name  The last step to run was step 1 (execute master..sqlbackup).  The job was requested to start at step 1 (execute master..sqlbackup).Here is the step 1DECLARE @exitcode intDECLARE @sqlerrorcode intEXECUTE master..sqlbackup N'-SQL "BACKUP DATABASE [OnlineLogging] TO DISK = ''X:\Backup\FULL_OnlineLogging.sqb'' WITH COMPRESSION = 2, ERASEFILES_ATSTART = 10, MAILTO_ONERROR = ''sqladmin@snl.com'', MAXTRANSFERSIZE = 262144, THREADPRIORITY = 1, THREADCOUNT = 4"', @exitcode OUT, @sqlerrorcode OUTIF (@exitcode &amp;gt;= 500) OR (@sqlerrorcode &amp;lt;&amp;gt; 0)BEGINRAISERROR ('SQL Backup failed with exit code: %d  SQL error code: %d', 16, 1, @exitcode, @sqlerrorcode)ENDError : Msg 50000, Level 16, State 1, Line 6SQL Backup failed with exit code: 510  SQL error code: 0Immediate reply from Senior are greatly appricate.Thanks  a lot</description><pubDate>Mon, 13 Sep 2010 01:22:38 GMT</pubDate><dc:creator>EasyBoy</dc:creator></item></channel></rss>