• Perry Whittle (10/20/2014)


    Mac1986 (7/3/2014)


    My Database backup is not working in SQL 2014 RTM version. It works fine on SQL Server 2008 R2.

    All databases are in Simple recovery model. Not sure what might be the issue. I'm admin for SQL instance and on the box.

    DECLARE @BackupFile1 varchar(max)

    SET @BackupFile1 = 'E:\MSSQL\Bak\DailyBackups\MSDB\MSDB1_' + REPLACE(REPLACE(REPLACE(CONVERT(varchar,GETDATE(), 112),'-',''),':',''),' ','') + '.BAK'

    BACKUP DATABASE MSDB TO

    DISK = @BackupFile1

    WITH NOFORMAT, NOINIT, NAME = N'MSDB-Full Database Backup',

    SKIP, NOREWIND, NOUNLOAD, COMPRESSION,MAXTRANSFERSIZE = 4194304, STATS = 10

    Error:

    Msg 3013, Level 16, State 1, Line 25

    BACKUP DATABASE is terminating abnormally.

    sounds like a memory issue, try lowering the max transfer size to around 1MB and see what results you get

    I'd also try specifying a low buffer count. I believe it's buffer count * max transfer size that dictates how much RAM backups use. So you should tailor the buffer count to how much memory you can spare.