Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

msdb backupset new index Expand / Collapse
Posted Friday, September 28, 2012 2:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, November 29, 2012 4:47 AM
Points: 9, Visits: 66
do you know why this index creation take for ever when I run it:

CREATE NONCLUSTERED INDEX [IX_backupset_database_name_backup_set_id]
ON [dbo].[backupset] ([database_name]) INCLUDE ([backup_set_id])

thank you
Post #1365681
Posted Monday, October 1, 2012 3:55 PM



Group: General Forum Members
Last Login: Today @ 2:36 AM
Points: 7,933, Visits: 14,357
It's probably because you have a lot of data in the table. If you haven't been cleaning the backup history and you have done a lot of backups since msdb was created that may be the source of the issue. I run a job once a week that runs this command to keep my backup history manageable:

SET @dt = DATEADD(day, -60, GETDATE())
EXEC dbo.sp_delete_backuphistory
@oldest_date = @dt ;

There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1366808
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse