How to abort a running backup job?

  • On more than one occassions I needed to stop/abort a running backup job. When I stop the backup job in SQL Server Agent Jobs (EM), the job stops but the backup continues to run until it is completed.

    Is there a way to abort a backup job and take the DB out of backup mode?

    Thanks for any input.

  • Kill the connection using

    kill {spid}

    ?

    Seems to work, but I don't know if there's any side-effects.

    SQL BAK Explorer - read SQL Server backup file details without SQL Server.
    Supports backup files created with SQL Server 2005 up to SQL Server 2017.

  • Thanks, Peter. I wonder if that would leave the DB in backup mode like it would in Oracle. Can anyone confirm this? Thanks.

  • I don't know about Oracle, but there isn't really a 'backup' mode in SQL Server.

    SQL BAK Explorer - read SQL Server backup file details without SQL Server.
    Supports backup files created with SQL Server 2005 up to SQL Server 2017.

  • Thanks, Peter. I'll give it a try next time.

  • There are places where KILL will not interrupt the process. So if it takes a few minutes, be aware that it might be finishing something before it stops the backup.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply