Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

msdb backupset new index Expand / Collapse
Author
Message
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
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
Post #1365681
Posted Monday, October 1, 2012 3:55 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 10:01 AM
Points: 7,127, Visits: 12,731
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
Post #1366808
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse