?
Solved

Restore in Enterprise Manager slow to initialize due to excessive old backups.

Posted on 2005-03-24
2
Medium Priority
?
358 Views
Last Modified: 2013-12-03
I am using SQL Server 2000.  I have been doing a full daily backup for over a year now.  I have the backup job set to delete any old backup files over 7 days old.  When I open the restore database and pick the database I want fo restore from it can take 5 minutes before I can even select the correct date.  Even though the backup files no longer exist the drop down for dates goes all the way back. Is there a way to fix this?
0
Comment
Question by:abishome
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 13622665
Take a look at the stored proc sp_delete_backuphistory  even though you delete the actual backup files, the history is maintained in MSDB.

Brett
0
 
LVL 34

Accepted Solution

by:
arbert earned 1000 total points
ID: 13622671
(this proc must be ran from the MSDB database)

Example from books online:

This example deletes all entries older than August 20, 1998, 12:00 A.M., in the backup and restore history tables.

USE msdb
EXEC sp_delete_backuphistory '08/20/98'




Brett
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Suggested Courses

764 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