Hello
I followed one of the FAQ's and executed this in a sql agent scheduled job
CREATE procedure usp_BackupDatabase
@DatabaseName varchar(100)
as
declare @date varchar(10)
declare @BackupPath varchar(255)
declare @BackupFile varchar(300)
set @BackupPath = 'c:\temp\'
set @date = convert(varchar(10), getdate(), 112)
set @BackupFile = @BackupPath + @DatabaseName + '_' + @date + '.bak'
backup database @DatabaseName to disk=@BackupFile
GO
i looked in event viewer and see that all db's backed up exect tempdb.
the error is:
SQL Server Scheduled Job 'test sched bkup' (0xEDC0CF410BC683489C569D9D0A379FEB) - Status: Failed - Invoked on: 2006-09-21 16:16:00 - Message: The job failed. The Job was invoked by Schedule 1 (test sched). The last step to run was step 1 (DB Bkup).
can someone tell me what went wrong or even if i should be trying to backup tempdb???
I followed one of the FAQ's and executed this in a sql agent scheduled job
CREATE procedure usp_BackupDatabase
@DatabaseName varchar(100)
as
declare @date varchar(10)
declare @BackupPath varchar(255)
declare @BackupFile varchar(300)
set @BackupPath = 'c:\temp\'
set @date = convert(varchar(10), getdate(), 112)
set @BackupFile = @BackupPath + @DatabaseName + '_' + @date + '.bak'
backup database @DatabaseName to disk=@BackupFile
GO
i looked in event viewer and see that all db's backed up exect tempdb.
the error is:
SQL Server Scheduled Job 'test sched bkup' (0xEDC0CF410BC683489C569D9D0A379FEB) - Status: Failed - Invoked on: 2006-09-21 16:16:00 - Message: The job failed. The Job was invoked by Schedule 1 (test sched). The last step to run was step 1 (DB Bkup).
can someone tell me what went wrong or even if i should be trying to backup tempdb???