Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

backup Expand / Collapse
Author
Message
Posted Wednesday, June 16, 2010 10:01 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 8, 2010 2:52 PM
Points: 4, Visits: 18
m running this code for backing up and to have backup log



backup database adventureworks
to disk = 'g:radvent6.bak'
mirror to disk='g:radvent7.bak'
with format,checksum,stop_on_error





use adventureworks
insert into HumanResources.department
(name,groupname)values('dreee','reserch')


backup log adventureworks
to disk='g:radvent6.trn'




after the backup log command executes shows the error as

The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE.
Msg 3013, Level 16, State 1, Line 1
BACKUP LOG is terminating abnormally.


what should i do how could i correct it .pls suggest.

Post #938640
Posted Wednesday, June 16, 2010 11:44 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:50 AM
Points: 40,209, Visits: 36,618
As the error clearly states, backup log is not allowed when the database is in simple recovery (which AdventureWorks is). If you want to plan with log backups, switch it to full recovery (alter database), take a full database backup and then you'll be able to make log backups.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #938661
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse