Where is the backup application log for SQL Server 2008?

后端 未结 4 1574
慢半拍i
慢半拍i 2021-01-03 18:37

I need to check out why a database backup failed in one of our systems.

The log says the following:

BACKUP failed to complete the command BACK

4条回答
  •  抹茶落季
    2021-01-03 19:02

    I had the same issue. Backing up the DBs with a PS.Script. The information in the log was not helpful. The cause was a timeout of my powershell script.

    A setting of "$server.ConnectionContext.StatementTimeout = 0" was not helping

    $ret=Invoke-Sqlcmd -Query $SQLStatement -ServerInstance $ServerName -ErrorAction 'Stop' -QueryTimeOut 600

    Setting the QueryTimeOut was doing the trick.

提交回复
热议问题