Missing .bak files in SQL Server Maintenance Plan

Posted on 2012-09-15
Last Modified: 2012-09-15
It's been a while since I've used SQL Server, so I'm getting back up to speed.

A client has a SQL Server database which has not been backed up regularly for months.  I'm configuring a maintenance plan, setup to do differential backups of the database nightly and full backups weekly.

My full backup procedure is supposed to backup the database to:

C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup

with Create a sub-directory for each database checked, and then shrink the database.

I executed the maintenance plan, and the log indicates that it executed successfully, but there are not .bak files on that path, and when I searched the entire C:\ drive there were no recent .bak files on the entire drive.

Any ideas what is going on?
Question by:Dale Fye (Access MVP)
    LVL 25

    Accepted Solution

    I would recommend you to manually debug the code. May be it is creating the bak file somewhere else. You can find whether backup was done or not by checking backuphistory in msdb database

    SELECT sdb.Name AS DatabaseName,
    COALESCE(CONVERT(VARCHAR(12), MAX(bus.backup_finish_date), 101),'-') AS LastBackUpTime
    FROM sys.sysdatabases sdb
    LEFT OUTER JOIN msdb.dbo.backupset bus ON bus.database_name =
    GROUP BY sdb.Name
    LVL 47

    Author Closing Comment

    by:Dale Fye (Access MVP)

    OK, that tells me that the backup did not actually run, because none of the "LastBackupTimes" actually were today.  I created a new maintenance plan with a "Backup Database Task" for all the databases.  Same configuration as above, and it worked.

    Thanks for the assistance.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
    Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now