• looks like someone restored msdb ? or maybe actually did a DBCC CHECKIDENT with Ressed?

    the diagnosis is easy, and so is the fix:

    the diagnosis:

    use msdb;

    GO

    DBCC CHECKIDENT ('dbo.backupset')

    SELECT MAX(backup_set_id) + 1 FROM dbo.backupset

    if the current identity is less than the max row in the table, that explains the error.

    the fix would be as follows:

    use msdb

    GO

    Declare @FixedKey int

    SELECT @FixedKey = MAX(backup_set_id) + 1 FROM dbo.backupset

    print 'new correct key is ' + convert(varchar,@FixedKey)

    DBCC CHECKIDENT( 'dbo.backupset',RESEED,@FixedKey)

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!