Comments (17)
from sql-server-maintenance-solution.
I have confirmation from a Microsoft Support Engineer that the next CU for 2014 will be shipping with some retry logic for the BackupToURL functionality.
from sql-server-maintenance-solution.
There is currently no retry mechanism in DatabaseBackup, but it is a very good idea.
I would like to check some things. Could you send me the output - file from a failed backup job.
from sql-server-maintenance-solution.
from sql-server-maintenance-solution.
Unfortunately I don't see any good way to implement this.
If I was going to do this, it should only be for certain errors, where the retry makes sense.
The backup command returns two error. The first error is the interesting one, and the second error is a generic backup error. The problem is that you can only get the second error in T-SQL.
from sql-server-maintenance-solution.
Yes, this is the output - file I mean. Please set it to append or use the SQL Server Agent tokens for date and time.
$(ESCAPE_SQUOTE(SQLLOGDIR))\DatabaseBackup_FULL_$(ESCAPE_SQUOTE(JOBID))_$(ESCAPE_SQUOTE(STEPID))_$(ESCAPE_SQUOTE(STRTDT))_$(ESCAPE_SQUOTE(STRTTM)).txt
from sql-server-maintenance-solution.
from sql-server-maintenance-solution.
from sql-server-maintenance-solution.
I checked the CommandLog, and the backup shows an ErrorNumber of 3013, but
a NULL ErrorMessage.
Yes, this is the same issue. I am using the error variable. That only gives me the last error, for the logging, and no error message. However I will still get both errors in the output - file.
Here is an article about this issue:
https://blogs.msdn.microsoft.com/sqlprogrammability/2006/04/03/server-side-error-handling-part-2-errors-and-error-messages/
from sql-server-maintenance-solution.
Just to chime in here, we are experiencing the same issue and are in the process of dealing with MS support.
If any error files are needed (or anything else) I will be more than willing to accommodate.
from sql-server-maintenance-solution.
We are looking at this issue now. Will update once we have a solution.
from sql-server-maintenance-solution.
We currently experience the same random errors you are seeing and we are backing up exclusively to blob storage from a Azure D15 VM running Microsoft SQL Server 2016 (SP2-CU2) 13.0.5153.0 with 800 plus databases.
Retry logic built into the BackupToURL functionality would be extremely beneficial and I would welcome the addition in all SQL versions. As a workaround you could create a job to look at the CommandLog and generate your own syntax to reattempt the backup again.
from sql-server-maintenance-solution.
I'm also experiencing what seems to be the same problem (on 2012 SP4).
Having found this thread, I'm experimenting over the weekend with using the built-in retry functionality in SQL job steps - as I run DatabaseBackup from a job anyway.
from sql-server-maintenance-solution.
@GeorgePalacios: Nice! Last I heard, they were not going to provide this fix for 2012, so I'm glad to hear this.
from sql-server-maintenance-solution.
Microsoft has now released a fix for SQL Server 2014, SQL Server 2016, and SQL Server 2017.
https://support.microsoft.com/en-us/help/4463320/fix-intermittent-failures-when-you-run-backups-to-azure-storage-from-s
from sql-server-maintenance-solution.
@olahallengren I found this topic and am experiencing very similar behavior on SQL Server 2017 EE, CU17. We backup dozens of DB's to Azure blob storage ranging from GB's to 5TB using your solution.
It works great most of the time, but I get the occasional 3013. It typically works the next attempt, but occasionally multi-attempt failures do occur. I have set the transfer and block size, I backup to 64 files, and the failures are usually not on the largest of the DB's.
I do not see any details in the log, error messages are null in CommandLog table. Any help or guidance to help achieve more stability would be great. Thanks for your time.
from sql-server-maintenance-solution.
@durilai, what would you like to have? A retry parameter?
from sql-server-maintenance-solution.
Related Issues (20)
- Exclude Multiple tables
- Include the name of the day, for daily differential backups.
- Default Backup Location Folder doesn't exists HOT 1
- Fallback backup location
- ChangeBackuplocation
- Add an option to generate the Task Scheduler commands for SQL Express
- Update Statistics very slow on a 3Tb database HOT 3
- PRINT when TimeLimit has been reached in IndexOptimize HOT 1
- Diff backup of new database created fom another database is not being converted to full.
- (JOBNAME) variable not working on SQL Server 2014? HOT 2
- ColumnStore Index Fragmentation Issue
- Support Veeam Databses backups
- IndexOptimize job randomly reporting failure even when the log file says the Outcome succeeded HOT 6
- running rebuild on individual index takes a long time compared to native SQL commands HOT 2
- Enhance Index Rebuild Decision Process with Page Density Factor
- Parallel processing for index maintenance
- IndexOptimize - wrong ONLINE setting when table contains ColumnStore index
- Clustered indexes
- 7Zip compression
- @Clearuptime does not consider is_copy_only backups
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sql-server-maintenance-solution.