Quantcast
Channel: SQL Backup Archives - SQL Authority with Pinal Dave
Browsing all 110 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to Add Date to Database Backup Filename? – Interview Question of the Week...

Question: How to Add Date to Database Backup Filename? Answer: Many times, there are comments on my earlier blogs which are a source of new blogs. This blog is a side effect of one of such interaction....

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER – Powershell Script – Remove Old SQL Database Backup Files from...

Few days back I wrote blog to help my blog reader and this is follow up on the same post How to Add Date to Database Backup Filename? – Interview Question of the Week #109. In this blog post we will...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER – Cannot open backup device. Operating system error 1326 (Logon...

There might be various reasons for above error, but this case is very specific to a situation where SQL Server was installed on a machine which was in Workgroup whereas the backup destination was the...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – FIX : Msg 35295, Level 16 – Log Backup For Database ‘DBName’ on...

Once, while doing a load testing with my client, I was shown below error while taking log backups on secondary replica. Msg 35295, Level 16, State 1, Line 1 Log backup for database “MyAppDB” on a...

View Article

Image may be NSFW.
Clik here to view.

How to Get Status of Running Backup and Restore in SQL Server? – Interview...

Question: How to Get Status of Running Backup and Restore in SQL Server? Answer: One of the reasons I started my blog long ago was to have a repository of scripts which can be very useful by DBA during...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER – Msg 3101, Level 16 – Exclusive Access Could not be Obtained...

This error might have seen by DBAs and they know how to fix it. This blog goes in little details about what are the various options available. Here is the simple reproduction of the error message...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – Msg 3136, Level 16 – This Differential Backup Cannot be Restored...

I was trying to teach copy-only backups to my students and encountered below error related to differential backup. Msg 3136, Level 16, State 1, Line 28 This differential backup cannot be restored...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – Msg 3035, Level 16 – Cannot Perform a Differential Backup for...

If we look at the error in the subject line, it is very clear that a full backup is needed so that the differential backup chain can be initiated. If this happens to a newly created database, then it...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER – FIX: Msg 3132, Level 16 – The Media Set has 2 Media Families but...

This blog is a response to a comment on our blog. Have you ever encountered below error related to media set? Msg 3132, Level 16, State 1, Line 15 The media set has 2 media families but only 1 are...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER – FIX : Msg 3178, Level 16 – File SQLAuthority is Not in the...

Few days back I wrote a blog about error messages during differential backup restore. SQL SERVER – Msg 3136, Level 16 – This Differential Backup Cannot be Restored Because the Database has not Been...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – Maintenance Plan – Backup Files Not Getting Deleted

Sometimes it is important to read the documentation before assuming things based on the text. This blog is the result of one of my quick interaction with a client who had an issue with Maintenance Plan...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – How to Protect Your Database from Ransomware?

In the last month, I have received calls from quite a few of my customers about Ransomware. Particularly this weekend it has been very busy with over 8 customers had issues with Ransomware. However, we...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER- Error: 18204, Severity: 16 – Backup Failure – Operating System...

Whenever you are into a business of “fixing the issue” – you should always find in error message first. The whole approach of solving the issue changes if we go behind the wrong error message. Let us...

View Article


Image may be NSFW.
Clik here to view.

SQL SERVER – Unable to Restore from URL – The Specified URL Points to a Block...

With Microsoft Azure pitching in the market, I am getting few clients who want me to assist them for errors related to Azure as well. As a part of growth, I do learn them and try to help the clients....

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – Msg 3168, Level 16 – The Backup of the System Database on the...

In the recent past, I have written a blog about Ransomware. Here is the link. SQL SERVER – How to Protect Your Database from Ransomware?. In this blog post we are going to discuss about system...

View Article


Image may be NSFW.
Clik here to view.

What is Copy Only Backup in SQL Server? – Interview Question of the Week #128

Question: What is Copy Only Backup in SQL Server? Answer: This is another interesting question I received the other day. The question was in the image form and I am re-producing the image again here....

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – Alternative of Log Shipping in Simple Recovery Model

The blog topic might seem controversial and doesn’t go well with definition of log shipping features. Read it again. The blog has an alternative way to set up something “similar” to log-shipping. If...

View Article


Image may be NSFW.
Clik here to view.

What does BACKUP WITH NAME Command do? – Interview Question of the Week #130

Questions: What does BACKUP WITH NAME Command do? Answer: Nothing more than naming your database backup. Honestly, I was recently asked this question by a user and I was a bit lost when I heard this...

View Article

Image may be NSFW.
Clik here to view.

SQL SERVER – Msg 1833 – File Cannot be Reused Until After the Next BACKUP LOG...

While preparing for a demo for an upcoming session, I came across an error which I didn’t see earlier. Here is the error in the UI and it is related to Backup Log Operation. I am also trying to add a...

View Article

Image may be NSFW.
Clik here to view.

What does Keyword STATS Indicates in Backup Scripts in SQL Server? –...

Question: What does Keyword STATS Indicates in Backup Scripts in SQL Server? Answer: This is a very interesting question. I have seen many DBA using the backup scripts and using the keywords STATS but...

View Article
Browsing all 110 articles
Browse latest View live