|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, November 29, 2012 4:47 AM
Points: 9,
Visits: 66
|
|
hello, 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
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 8:26 AM
Points: 6,737,
Visits: 11,791
|
|
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:
DECLARE @dt DATETIME ; 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
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|