SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Database will not be backed up because it does not
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vasi
Starting Member

Singapore
11 Posts

Posted - 06/11/2012 :  09:56:29  Show Profile  Reply with Quote
Hi All,
My env is sql server 2005. we are taking transaction log backup using Maintenance plan script . i am not able to take backup .
i am getting below error
Database 'database_name' will not be backed up because it does not have its recovery model set to Full or BulkLogged.
Kindly Help me , to resolve this issue .
Thanks
vasi

webfred
Flowing Fount of Yak Knowledge

Germany
8513 Posts

Posted - 06/11/2012 :  10:23:42  Show Profile  Visit webfred's Homepage  Reply with Quote
http://lmgtfy.com/?q=sql+server+how+to+set+the+recovery+model


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
1767 Posts

Posted - 06/11/2012 :  10:57:11  Show Profile  Visit jackv's Homepage  Reply with Quote
USE [master]
GO
ALTER DATABASE [My_DB] SET RECOVERY FULL WITH NO_WAIT
GO

Then take a FULL BACKUP

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

vasi
Starting Member

Singapore
11 Posts

Posted - 06/12/2012 :  04:29:25  Show Profile  Reply with Quote
Thnaks jackv
i hope its going to helpful.

Go to Top of Page

Sachin.Nand
Flowing Fount of Yak Knowledge

2937 Posts

Posted - 06/12/2012 :  07:50:18  Show Profile  Reply with Quote
You are trying to set up a Tlog backup which is not possible when the recovery mode is set to SIMPLE.You have to change it to FULL or Bulk Logged.

You can use the script posted by jackv to do so.

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

vasi
Starting Member

Singapore
11 Posts

Posted - 06/12/2012 :  11:21:50  Show Profile  Reply with Quote
Hi jackv/sachin,
Thanks for the reply ,Am I need to execute above query every time while running backup script. Is it ok if i execute once ?
can I know, how to see the Tlog backup job script in Sql server 2005?

Thanks
Vasi
Go to Top of Page

Sachin.Nand
Flowing Fount of Yak Knowledge

2937 Posts

Posted - 06/12/2012 :  14:41:54  Show Profile  Reply with Quote
No you have to execute the script only once.

You can check the sql jobs which get created by the maintenance plan.

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

vasi
Starting Member

Singapore
11 Posts

Posted - 06/12/2012 :  20:44:12  Show Profile  Reply with Quote
Hi sachin,

Thanks for the reply,From the maintenance plan (it’s already created) running the scripts, but how to see the running backup script in maintenance plan? Can I have steps plz. Not Graphical

Thanks
Vasi
Go to Top of Page

Sachin.Nand
Flowing Fount of Yak Knowledge

2937 Posts

Posted - 06/13/2012 :  00:42:35  Show Profile  Reply with Quote
Just right click the maintenance plan and click modify and then double click the maintenance step.A pop up will appear which will have the "View T-SQL" button.

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

vasi
Starting Member

Singapore
11 Posts

Posted - 06/13/2012 :  22:35:07  Show Profile  Reply with Quote
HI ALL,
In production my cpu is high all the time.
when i query Select * from master..sysprocesses where SPID > 50 order by CPU desc
i saw the BROKAR_TASK_STOP =1188343(CPU)

can any one help me
what are the steps to do come done the cpu down ?


Thanks
Vasi
Go to Top of Page

Sachin.Nand
Flowing Fount of Yak Knowledge

2937 Posts

Posted - 06/14/2012 :  00:54:41  Show Profile  Reply with Quote
quote:
Originally posted by vasi

HI ALL,
In production my cpu is high all the time.
when i query Select * from master..sysprocesses where SPID > 50 order by CPU desc
i saw the BROKAR_TASK_STOP =1188343(CPU)

can any one help me
what are the steps to do come done the cpu down ?


Thanks
Vasi




Is that related to your original post ? Does not look that way.

Create a new thread for it.

After Monday and Tuesday even the calendar says W T F ....
Go to Top of Page

vasi
Starting Member

Singapore
11 Posts

Posted - 06/17/2012 :  22:57:17  Show Profile  Reply with Quote
HI all


Executing the query "EXECUTE master.dbo.xp_delete_file 0,N'
\\\\rpstorage\\sqldump\\MSSQL\\BACKUP\\File',N'trn',N'DATE TIME',1
" failed with the following error:
"A severe error occurred on the current command.
The results, if any, should be discarded.
A severe error occurred on the current command.

The results, if any, should be discarded.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

parameters not set correctly, or connection not established correctly.

Can any one tell about the issue and which parameter i have to set for script ?
Go to Top of Page

Anne1234
Starting Member

USA
3 Posts

Posted - 06/20/2012 :  02:57:47  Show Profile  Reply with Quote
Hi, This is a good post, indeed a great job.. You must have done good research for the work, i appreciate your efforts.. Looking for more updates from your side.

anne Shirley
Go to Top of Page

vasi
Starting Member

Singapore
11 Posts

Posted - 06/20/2012 :  04:03:27  Show Profile  Reply with Quote
Hi anne,
Thanks for reply we are finding sol to the problem .
can you have the sol let us now.


thanks
vv
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000