DB Maintenance - Backup Transaction Log Fails

Jul 23, 2007

Hi,



I'm running SQL 2005 SP2 and having a problem with a Database Maintenance task created in SSMS doing transaction log backups of all user databases.



When I look at dbo.sysmaintplan_logdetail I see the message:

Database 'Database1' will not be backed up because it does not have its recovery model set to Full or BulkLogged.



Great - that's what we want! Skip the SIMPLE recovery mode databases. However, the next entry is the following error message:

Executing the query "BACKUP LOG [Database1] TO DISK = N'D:\MSSQL$Windows\MSSQL.2\MSSQL\Backup\Database1\Database1_backup_200707231600.trn' WITH NOFORMAT, NOINIT, NAME = N'Database1_backup_20070723160023', SKIP, REWIND, NOUNLOAD, STATS = 10 " failed with the following error: "The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE. BACKUP LOG is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.



Which says to me it is trying to backup the same database(s) it just said it was skipping!



What's going on? I see that there is a fix to a similar error message with the cumulative update KB936305 (http://support.microsoft.com/kb/936305) for maintenance cleanup tasks.



Does anybody else have such a problem?

View 1 Replies


ADVERTISEMENT

SP2 Maintenance Backup Fails On Offline Database.

May 29, 2007

I have a maintenance plan step to perform transaction log backups. There are a few databases that are offline. The backup seems to fail because it tries to backup the offline databases. The backup step is by itself as one of three subplans, although it also fails when it is the only step in a plan with only one subplan.

I have another server that is only on SP1 and it does not have problems handling the offline databases.

Is this an issue with SP2(9.0.3054)?

View 4 Replies View Related

Transaction Log Backup Fails

May 7, 2001

My transaction log backup is failing with the following error:
Does anyone know how I can fix it?
(null)
Microsoft (R) SQLMaint Utility (Unicode), Version 8.00.194 Copyright (C) Microsoft Corporation
(null)
Logged on to SQL Server as 'NT AUTHORITYSYSTEM' (trusted) Starting maintenance plan 'Maint Plan - TLogs' on 5/7/2001 8:18:11 AM Backup can not be performed on database. This sub task is ignored. (null)
Thanks

View 2 Replies View Related

Transaction Log Backup Job Fails

Jan 21, 2004

Our Transaction Log backup job runs every two hours from 7:00am to 8:59pm. Today, our Full backup job and the first Transaction Lob backup job ran successfully. Subsequent Transaction Log Backups have failed with the following error message under Job History:

"The job failed. The Job was invoked by Schedule 13 (Schedule 1). The last step to run was step 1 (Step 1)."

The caveats are that the database is in Full recovery mode and a .TRN file is generated on the server. Also, the SQL Server log says the job ran successfully. Any ideas?

View 7 Replies View Related

SQL Transaction Log Backup Fails.

Jul 11, 2007

Hi,

I'm a clueless SQL noob trying to set a maintenance plan to backup my databases.

This is SQL 2005 running on Windows SBS 2003 R2.

I've created two maintenance plans one to do a full backup of all DBs and one to do transaction log backups every 4 hours of the databases.

The full backups run but the transaction log backup fails with

DTExec: The package execution returned DTSER_SUCCESS (0). in the logs.

I can run the backup manually from the SQL Studio but not automatically.

Any clues on what can cause this not to work?

Thanks,
nline

View 20 Replies View Related

Transaction Log Backup Via SQL Maint Fails

Jul 5, 2002

I have setup a SQL maintenance plan to backup the transaction log file to be backup every one hour M-F.

But now I have been getting the following error:

sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.

Any clues what does this error mean ?

Thanks.

View 2 Replies View Related

Master Transaction Log Backup Fails

Nov 9, 2004

:eek:

Okay. I changed the times that the transaction logs are backed up, via the built in maintenance schedule. It was then that I started to get failures only on the Transaction log backup for the master. The error that I get from the history log is Backup can not be performed on this database. This sub task is ignored. If I look in the file that is saved to disk :


Starting maintenance plan 'DB Maintenance Plan1' on 09/11/2004 02:30:00
Backup can not be performed on database 'master'. This sub task is ignored.

[1] Database onyx: Transaction Log Backup...
Destination: [R:BACKUPonyxonyx_tlog_200411090230.TRN]

** Execution Time: 0 hrs, 0 mins, 23 secs **

[2] Database onyx: Verifying Backup...

** Execution Time: 0 hrs, 0 mins, 8 secs **

Deleting old text reports... 1 file(s) deleted.

End of maintenance plan 'DB Maintenance Plan1' on 09/11/2004 02:30:31
SQLMAINT.EXE Process Exit Code: 1 (Failed)

I changed the backup back to its original time as this was the only change made. This has not resolved the problem. As I am new to SQL and still finding my feet All the other SQL maintenance plans that I changed are working fine.


Thanks

Steve

View 5 Replies View Related

SQL 2012 :: If Transaction Log Backup Fails Due To Conflict Could It Break Log Chain?

Oct 5, 2015

If Transaction Log Backup fails due to a conflict could it break the Log Chain?

View 3 Replies View Related

Maintenance Job Fails

Jul 23, 2005

Hi there,Used the wizard to create a maintenance plan for a db. But it fails most ofthe time. I checked the log-files.At 1.00 AM, it runs the "Optimizations" job for 6-9 seconds. It succeedsalways.At 1.05 AM, for 1 second, it runs "integrity check", but most of the time itfails, and says that it couldn't switch to single-user because other usersare using the database.And when "integrity check" fails the "backup" job won't run at 1.10 AM. Whenit DOES run it takes 2 seconds.How do I find out who is using the database ? How do I put a sp_who (orsimilar) in the "integrity check" job ?I got this tip:----------Assuming you have SQL2000, then you can use something like this tokick out all the users:ALTER DATABASE foo SET RESTRICTED_USER WITH ROLLBACK IMMEDIATEIf you want to know who is using the database, then this is one way:select suser_sname(sid)from master..sysprocesseswhere dbid = db_id('foo')---------But how do I actually do it ? How do I edit a maintenance plan ?thx/jim

View 5 Replies View Related

Table Maintenance Job Fails

Nov 28, 2000

I am running an overnight job for table Maintenance - this job execs a SP. It has been working okay for a while and is suddenly failing (last two weeks) with Error 515 cannot insert nulls into column. I realise that it is possible that a change has been made but cannot for the life of me ascertain what it is. I have checked server config, database properties and user options and it all appears to be the same as a server that is running this job okay. Please help!!

View 1 Replies View Related

Database Maintenance Job Fails

Apr 21, 2003

I have several Maintenance jobs that keep failing. They
are , Integrity Checks, Index rebuild, and Update
statistics. I keep getting a similar error on all three. I
have pasted it below. None of my other SQL 2000 servers
have any problems. I have tried changing the database
options in question. The error I keep getting is as
follows:



Microsoft (R) SQLMaint Utility (Unicode), Version Logged
on to SQL Server 'DAPHNE' as 'CDCNorm' (trusted)
Starting maintenance plan 'FSPRD84A Integrity Checks' on
4/21/2003 10:20:59 AM
[1] Database FSPRD84A: Check Data and Index Linkage...
[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 1934:
[Microsoft][ODBC SQL Server Driver][SQL Server]DBCC failed
because the following SET options have incorrect
settings: 'QUOTED_IDENTIFIER'.

The following errors were found:

[Microsoft][ODBC SQL Server Driver][SQL Server]DBCC failed
because the following SET options have incorrect
settings: 'QUOTED_IDENTIFIER'.
** Execution Time: 0 hrs, 0 mins, 8 secs **

End of maintenance plan 'FSPRD84A Integrity Checks' on
4/21/2003 10:21:07 AM
SQLMAINT.EXE Process Exit Code: 1 (Failed)


Any suggestions?

View 8 Replies View Related

Maintenance Plan Fails

Feb 12, 2004

I created a maintenance plan to back up a database. It fails and I get the follow error in the log file.

Microsoft (R) SQLMaint Utility (Unicode), Version [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 4064: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open user default database. Login failed.

What user is it referring to? What user does a Maintenance plan use to login as? SA on the server has full access to all databases. SA’s default database is master and I can read and write to it with the enterprise manager and query analyzer.

All replies appreciated

View 2 Replies View Related

Maintenance Plan Create Fails

Mar 31, 2008

Hello,

On SQL 2005 with mixed authentication, I am simply trying to create a maintenance plan to backup one single database. When I get to the end of the wizard, the creation process fails with this message:

Create maintenance plan failed().

I installed SQL 2005 using my domain account and the services are running under my account credentials. I am a domain and local admin.

Any ideas?

Regards,
Chris

View 5 Replies View Related

SQL2k5 SP2 Db Integrity Maintenance Plan Fails

Feb 25, 2008

I created a user db integrity maintenance task. The created job runs once a week. It fails. How do you tell at what point is fails? The history log is not specific about where things go off the rails.

The job errors as follows -
Execution of job "User Integrity check subplan_1 failed. See history log for details

If I run the sql in a query window it goes right through - error free.

USE [AcAspNetDB]
GO
DBCC CHECKDB(N'AcAspNetDB', NOINDEX)
GO
USE [LCCIntranet_Config]
GO
DBCC CHECKDB(N'LCCIntranet_Config', NOINDEX)
GO
USE [library_SSP_Search_DB]
GO
DBCC CHECKDB(N'library_SSP_Search_DB', NOINDEX)
GO
USE [Librarysspdb]
GO
DBCC CHECKDB(N'Librarysspdb', NOINDEX)
GO
USE [seeunity]
GO
DBCC CHECKDB(N'seeunity', NOINDEX)
GO
USE [SharedServicesv2_DB]
GO
DBCC CHECKDB(N'SharedServicesv2_DB', NOINDEX)
GO
USE [SharedServicesv2_Search_DB]
GO
DBCC CHECKDB(N'SharedServicesv2_Search_DB', NOINDEX)
GO
USE [SharePoint_AdminContent_bc87e79f-4873-4ec0-b2bb-734054a2564d]
GO
DBCC CHECKDB(N'SharePoint_AdminContent_bc87e79f-4873-4ec0-b2bb-734054a2564d', NOINDEX)
GO
USE [WSS_Content]
GO
DBCC CHECKDB(N'WSS_Content', NOINDEX)
GO
USE [WSS_Content_lccintranet80]
GO
DBCC CHECKDB(N'WSS_Content_lccintranet80', NOINDEX)
GO
USE [WSS_Content_LCCSSPv2]
GO
DBCC CHECKDB(N'WSS_Content_LCCSSPv2', NOINDEX)
GO
USE [WSS_Content_library]
GO
DBCC CHECKDB(N'WSS_Content_library', NOINDEX)
GO
USE [WSS_Content_librarymysite]
GO
DBCC CHECKDB(N'WSS_Content_librarymysite', NOINDEX)
GO
USE [WSS_Content_libraryssp]
GO
DBCC CHECKDB(N'WSS_Content_libraryssp', NOINDEX)
GO
USE [WSS_Content_mysitev2]
GO
DBCC CHECKDB(N'WSS_Content_mysitev2', NOINDEX)
GO
USE [WSS_Search_ISSMOSS]
GO
DBCC CHECKDB(N'WSS_Search_ISSMOSS', NOINDEX)

Anyone had an issue like this?

Regards
Rob

View 2 Replies View Related

Maintenance Plan Fails Due To Login Failure

Nov 14, 2007



W2k3SP2 running SQL2k5SP2 in mixed mode. Trying to run a daily maintenance plan with a domain admin service account [domainsqlsvc]. This account is having login failure when I try to run the maintenance job. Would like to figure out why this account cannot authenticate with SQL. I believe I have local login denied, but login as a svc and login as a batch job are both enabled in Domain Policy.

What am I missing?

TIA for your help!

-Nick

EDIT: Here is the error data.

Date 11/14/2007 9:36:16 AM
Log SQL Server (Current - 11/14/2007 9:36:00 AM)
Source Logon
Message
Login failed for user 'domainsqlsvc'. [CLIENT: <local machine>]
Error:18456, Severity: 14, State: 16

View 2 Replies View Related

Transaction Log Maintenance

Sep 29, 2007

I've just install SQL Server 2005 and successfully navigated my way through using the Maintenance Plan to backup my databases but can't figure out how to keep my transaction logs from getting huge. Is this controlled by a Maintenace Plan and, if so, what is the preferred setup?

View 7 Replies View Related

Check DB Integrity Task Fails In Maintenance Plan

Apr 26, 2007

Ever since upgrading SQL Server 2005 to SP2 build 3050 all my maintenance plans which begin with a Check Database Integrity Task are failing! If I remove the task from the plan they all execute properly. If I run the T-SQL equivalent manually it executes properly.

I upgraded the server to build 3054 and rebooted several times and Im still having no luck. What am I doing wrong?
Thanks for your help with this.
-Kenny

View 7 Replies View Related

Differential Backup Fails Because Of Erroneous Full Backup

Jul 19, 2007

Hi

I am using the Simple recovery model and I'm taking a weekly full backup each Monday morning with differentials taken every 4 hours during the day.

On Wednesday afternoon, a programmer ran a process that corrupted the db and I had to restore to the most recent differential. It was 5pm in the afternoon and a differential backup had just occured at 4pm. No problem, I figured.

I restored the full backup from Monday morning and tried to restore the most recent differential backup. The differential restore failed. Since I had used T-SQL for the initial attempt, I tried using Enterprise Manager to try again.

When viewing the backup history, I see my initial full backup taken on Monday plus all the differentials. BUT, on closer inspection, I noticed another full backup in the backup history that was taken early Tuesday morning. I can't figure out where this Tuesday morning full backup came from. It wasn't taken by me (or scheduled by me) and I'm the only one with access to the server. My full backups are usually named something like HCMPRP_20070718_FULL.bak. This erroneous full backup was named something like HCMPRP_03a_361adk2k_dd53.bak. It seemed like it was a system generated name. Not something I would choose. To top it off, I could not find this backup file anywhere on the server and when I tried to restore using this full backup, it failed.

Does anyone have any clues as to where this full backup might come from? Does SQL Server trigger a full backup on its own if some threshold is reached?

I ended up having to restore using the differential taken just before this erroneous full backup and lost a day of transactions.

Any insight is greatly appreciated.

View 3 Replies View Related

SQL 2012 :: Maintenance Plan - Show Successful Even If A Task Fails?

Apr 3, 2014

Our backups by default go to a network location, but I'd like to modify our maintenance plans to backup to an alternative location if the primary location isn't available. I've setup two Backup Database Tasks where the second one runs only if the first one Fails, and if the second one runs (on first one's failure) it then sends a notification to me so I know this occurred.

The Plan is running as expected, when I simulate a bad path in the first Backup Task the second one runs and the notification is sent, but the Job shows failure. I'd like to show the job as Successful when this occurs since I'm handling the issue and notification within the Plan, but I'm unable to find out how. I've set FailParentOnFailure to False on the Plan and I've changed the MaximumErrorCount to 2 with the assumption that this would work, but neither didn't.

Also I'm running into this in both SQL 2008 and SQL 2012.

View 1 Replies View Related

Transact SQL :: Index Maintenance / Defrag Fails On CDC Enabled Database - 2008 R2

Oct 18, 2012

We have a new database with cdc enabled on all of its tables.  This causes the index maintenance task to fail with following message:

"Executing the query "EXEC DBName.dbo.IndexDefrag_sp" failed with the following error:  "The unique index 'PK_TableName' on source table '[dbo].[TableName]' is used by Change Data Capture.  To alter or drop the index, you must first disable Change Data Capture on the table.  The transaction ended in the trigger. The batch has been aborted.".  Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly" We would like to run the index maintenance without losing the cdc data.  We plan on installing SP2 on SQL Server 2008 R2 soon, would that solve the issue?  Disabling the cdc prior to index maintenance and then re-enabling back upon completion; would delete the data as I found in most discussions, but we would like to retain it. 

View 4 Replies View Related

Maintenance Job Generates A Huge Transaction Log

Oct 12, 2001

Recently I did an upgrade form SQL 7 to SQL 2000. Everything went smoothly
except there is a little problem with an Optimization job (reorganize data and index pages/remove unused space from database files). The job itself runs
fine. But when I do a transaction log backup, it generates a huge log backup file. I don't remember that there was such a huge-sized transaction log backup file when I ran it on SQL 70. Is SQL 2000 different from SQL 7 on this aspect?

View 1 Replies View Related

Transaction Log Growth During Maintenance Plans

Oct 5, 2006

During my maintenance plans every night, my transaction log for a 17GB database grows to about 9.5GB. I am running transaction log backups every 2 hours, and my transaction log stays around 300MB during the day. However, every night when the optimization job runs, this explosive growth occurs. I have the optimizations set to Reorganize data and index pages, changing free space to 10%, and remove unused space from database files to 10%, shrinking when they grow beyond 50MB. This database handles cash register operations which are not active during the maintenance plan.

View 4 Replies View Related

Maintenance Plan - Back Up Database Task Fails Without Giving A Real Clue On How To Fix It.

Apr 18, 2008

Created a maintenance plan to backup my sharepoint databases.
When I execute it the following error occurs:
Execution failed. See the maintenance plan and SQL Server Agent job history logs for details:
Additional Information:
Job 'SharePointBackUp.Backup_SharePoint faild. (SqlManagerUI)
- Execute maintenance plan. SharePointBackUP (Error)
Messages
* Execution failed. See the maintenance plan and SQL Server Agent job history logs for details.

------------------------------
ADDITIONAL INFORMATION:

Job 'SharePointBackUP.Backup_SharePoint' failed. (SqlManagerUI)


When checking the Maintenance PlansharePointBackUP log it is empty!
Under Job History I thinks this:
Date 4/18/2008 12:55:35 PM
Log Job History (SharePointBackUP.Backup_SharePoint)
Step ID 1
Server DESD7
Job Name SharePointBackUP.Backup_SharePoint
Step Name Backup_SharePoint
Duration 00:00:00
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Unable to start execution of step 1 (reason: line(1): Syntax error). The step failed.
line 1? Is that line one of the T-SQL statement? Because if that's the case then it's not because I copied and pasted the line in to a query and it executed without error.
Under SQL Agent there are no entries!
So what bloody log am I suppose to be checking?! This is very frustrating.
I then copied and pasted every sql statement in to a query and THEY all ran just fine.

What's going wrong here, and how can I correct it?

View 5 Replies View Related

Maintenance Plans Not Deleting Old Transaction Log Backups

Jan 31, 2007

I'm the dba for a large company and have setup many maintenance plans for our sql servers. One of the options I have set is to delete old backups of databases and transaction logs after 2 days. For some reason, the old database backups are being deleted, but the old transaction logs backups are not. I have them being put in the same directory. Anybody have any ideas why this is happening and what if any fix is available?

View 1 Replies View Related

SQL Security :: Full Backup Needed After Restoration Of Database Before Transaction Log Backup

Jul 15, 2015

We take a full backup in the early morning and hourly transaction log back during the working hours for one database in the production server. The application team made certain changes to the design of the said database in their development server. The backup from the development server was restored to the production server during working hours. After the restoration should we take a full backup before next transactional logbackup? Would the transactional log backup with out a full backup after the restoration of a database be valid?

View 5 Replies View Related

Maintenance Plan Fails Trying To Delete Files Older Thean One Day. Running SQL Server 2005

Oct 1, 2007

I get the following message when I execute a mantenance plan to delete files older than 1 day.

Error # -1073548784

Executing the query "EXECUTE master.dbo.xp_delete_file 0,N'',N'',N'2007-09-30T07:56:09'
" failed with the following error: "Error executing extended stored procedure: Invalid Parameter". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Any help would be appreciated!!

View 3 Replies View Related

Maintenance Plan To Backup DB

Jan 24, 2002

Are there any known issues using Maintenance Plans to backup DBs in SQL Server 7.0

Thanks

View 1 Replies View Related

Maintenance Plan Backup

Feb 23, 2000

I am doing full backups on 25 databases nightly using the SQL maintenance plan. Recently I have started getting the backup process hung on one database, so the whole plan does not finish. The job shows as executing, but nothing is being done, and nothing has been written to disk for this database. The SQL logs show a DBCC TRACEON 208, but the process it refers to is using another database. The NT logs do not show anything going on either. Additionally the backup process will not die when it is killed. They only way to make it go away is to stop and start the SQL Server. The system is a quad Pentium 450, 2Gig of ram, and plenty of disk space. It is NT SP5, SQL7 SP1. The DB is about 8.2 Gig. There are no other jobs scheduled to run at the time the backups run. Does anyone have any ideas what would be causeing the process to hang? Also what is a trace flag 208, it is not listed in BOL. Thanks for your help.

View 1 Replies View Related

Backup Maintenance Plan

Feb 7, 2003

I have a maintenance plan that I use to backup some of my databases and transaction logs. I have "Check Database Integrity" checked. If the database is being used by anyone when the backups are being performed, the check issues an error because the DB cannot be put into single user mode and then skips the backup. In the Plan, I have unchecked the box for "Perform these checks before backing up the database or transaction file" and apply the change. When I go back into the plan, the option is checked again. How can I get around this problem?

Thanks,
Ken

View 1 Replies View Related

Backup Maintenance Plan

Mar 21, 2002

I have a maintenance plan where I backup the system databases and my application databases every night. Once a week I do a Check Database Integrity. For the Master and MSDB databases, it errors out telling me that the database must be in single user mode. I thought that the maintenance plan would switch the DB to single user mode when it needed to perform its checks. Any suggestions on how to get this to work successfully?

Thanks,
Ken Nicholson

View 1 Replies View Related

Backup Vs. Maintenance Plan

Sep 6, 2001

I'm running sql server 2000. All the backups created through the Maintenance Plan failed (no specific error code), whereas backups created by itself (through database name => All Tasks => Backup database...) run fine. Does anybody have a clue why the Maintenance backup failed or how to trouble shout the problem?

The reason I want to make the backups from maintenance plan to work is that each backup will have a unique name and I can schedule to remove the old backup files from the system.

View 5 Replies View Related

Maintenance Plan: Backup

Jun 21, 2006

Hi,

I have made a maintenance plan to backup a database.

The file name is like this: name_db_200606211209.BAK

isn 't it possible to get the filename to be always the same
(without 200606211209)

I have unchecked the checkbox to remove files older than x-days
but it still appends 2006... to it

View 3 Replies View Related

Transaction Log Does Not Truncate And Shrink Using A SQL Server 2005 Maintenance Plan

May 15, 2006

We are using SQL Server 2005 (SP1). I have created a maintenance plan that backs up up the datebase every night. The problem is that the transaction log is continuing to grow. I have been told that a full backup will automatically truncate and shrink the transaction log. However, this is not happening. How can I truncate and shrink the transaction log after a full backup as part of our maintenance plan. Thank you.

View 29 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved