SQLMAINT And Backups

Oct 30, 2001

I am a big fan of the backup naming convention used by maintenance plans and the SQLMAINT utility. My problem is that I want to use the same naming convention "db_name_diff_YYYYMMddhhmmss" because of my situation: I'm in California, my databases are in Pennsylvania, I don't have domain access to the servers, I use a scheduling tool (required) that only uses T-SQL or cmd line utilities, and I want the backups named as above. SQLMAINT provides for full and tlog backups, which I have set up, but I want to do diff backups the same way, with the same naming convention. Any ideas?

View 1 Replies


ADVERTISEMENT

SQLMAINT.EXE AND INITIALIZING BACKUPS

May 12, 1999

I'm running SQLMaint.exe for DBCC and backups overnight, because I like the -BkUpOnlyIfClean switch, but I'm having a problem. I need
Due to space constraints, I need to overwrite the backup every night. The -DelBkUps switch is nice, but it accepts a parameter of weeks, not days. Is there some syntax I can use with SQLMaint.exe to get what I want, or am I going to have to do an NT 'at' commnad to get rid of the file just before th enext dump, or what? Any suggestions would be intensely appreciated.

View 1 Replies View Related

DB Engine :: Will Transaction Log Backups Not Free Up Log During Full Backups

Nov 15, 2015

The space allocated to the Log in question is 180 GB. During this time period I was running TLog backups every 5 minutes, yet the log continued to chew through to 80 GB used, even after the process was complete and a final TLog backup had been taken. It continued to stay very large until the Full backup was complete -- or something else that I'm unaware of completed. Like every other DBA I typically take a TLog backup to shrink the log, but what appeared to be the case here was the Full completed and it released the used log space. All said, will Transaction Log backups not free up the log during Full backups?

View 3 Replies View Related

Help!! SQLMAINT

Feb 7, 2002

Is anyone using the -DelBkUps option with their maintenance plan on
SQL 7.0?? if so is it actually deleting the files? Mine is running
but not deleting any of the old backup files.


thanks

View 1 Replies View Related

SQLMAINT 6.5

Oct 6, 1999

I would like to run the following SQLMAINT command on my database every
14days:

At 2:00 AM, this command needs to kick off: SQLMAINT.EXE -D cabinet
-CkAl -CkCat -UpdSts -RebldIdx 100 -Rpt D:MSSQLLOGcab_maint.rpt

Question: How can I "kill" all users, then place the database in "dbo"
mode, run "SQLMAINT", and then release database access back to the
public - all in an automated process.

Any suggestions would be "GREATLY" appreciated.

Thanks,
Chris

View 1 Replies View Related

SQLMaint.exe

Jan 15, 2002

Was wanting to get some feedback on using sqlmaint to produce database backups in a production environment. Especially on databases > 10GB. My preference is not to use it but I'm arguing with another DBA and wanted some outside feedback.

Thanks.
Carol

View 1 Replies View Related

Sqlmaint.exe

Jun 22, 2004

With MSDE 2K I get the following error message when trying to execute scheduled db maintenance/integrity checks:

"Failed executing API: CreateProcess. [SQLSTATE 42000] (Error 22029). The step failed. "

The Microsoft website tells me this is because sqlmaint.exe is not installed and that installing the latest service pack will solve the problem.

I installed the SP3a and sqlmaint.exe is in the following location:

C:/MSDE/Binn

But I still get the error...

Any Ideas?

View 1 Replies View Related

Sqlmaint Cmd Line

Jan 10, 2000

I am having problems running sqlmaint against my servers.

From a command line I am running c:sqlmaint -S servername -U "username" -A "password" -D database -UpdSts as a test.

All i get is the list of arguments displayed. This never seems to work.

Any Ideas??

View 2 Replies View Related

SQLMAINT.EXE Locking Up

Feb 3, 1999

I run the SQLMAINT.EXE utility nightly to do DBCC checkdb, checkalloc, and checkcat checks on all databases. On one server this check seems to lock up the server displaying error 17832, "unable to read login packets". Once this occurs the only way we can find to get out is to reboot the NT Server. We have observed this behaviour once every two or three weeks. Anyone seen anything similar?

View 1 Replies View Related

MS SQL Question - SQLMAINT.exe

Dec 15, 1998

Does anyone know where I could get details on the various switches SqlMaint.exe offers and descriptions of each switches capabilities.

I know by typing in "sqlmaint", it will list all the various switches available but there is not description of what each one exactly means.

Thanks in advance. JLS

View 2 Replies View Related

Sqlmaint.exe Failed

Jun 5, 2001

Can anyone tell me how to troubleshoot the following error:
'sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.'

Thank you,

Ryan

View 2 Replies View Related

Sqlmaint.exe Failed

Sep 17, 2001

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

I get this error message when trying to execute one of the jobs created by the maintenance plan wizard.

Any ideas what caused this error?

View 2 Replies View Related

Question About Sqlmaint

Sep 22, 2005

hi guys !
I have a simple question , i am using the following command to backup transaction logs :

exec dbo.xp_sqlmaint '-D Northwind -BkUpMedia DISK -BkUpLog "d:sqlackup" -BkExt "TRN" '

does it truncate the tranlog after backup i.e remove the unused entries from there ?

thanks
Sami
P.S: can you please CC me with your answer at esa019c@motorola.com ?

View 1 Replies View Related

Sqlmaint.exe And -HTMLRpt

Apr 11, 2004

SQL2000 SP3a I would like to generate an HTML output file as a report which should be possible. After creating the maintenance plan using the wizard I used the created syntax and established a second job which now uses the changed syntax - however the job doesnt run. In the log file it just states the basic sqlmaint switches.
Current job syntax - SQL uses build in system account.

EXECUTE master.dbo.xp_sqlmaint N'-PlanID 89CA81E2-181C-42F9- B39C-59EE21936079
-HTMLRpt "C:SystemDbs.html"
-DelHTMLRpt 1DAY
-VrfyBackup
-BkUpMedia DISK
-BkUpDB
-UseDefDir
-DelBkUps 2WEEKS
-CrBkSubDir
-BkExt "BAK"'

View 4 Replies View Related

Sqlmaint.exe Failed

Sep 12, 2005

I have a maintenance plan on a client's site, there's only one databasein the plan and it's set to backup db and log, this job failsconsistently. The one step in the job contains this line:EXECUTE master.dbo.xp_sqlmaint N'-PlanID392B2334-6800-4655-A6C7-5414D9072505 -WriteHistory -VrfyBackup-BkUpMedia DISK -BkUpDB "C:Program FilesMicrosoft SQLServerMSSQLBACKUPDailyBackups" -DelBkUps 4WEEKS -BkExt "BAK"'Which fails if run in QA with the message:Server: Msg 22029, Level 16, State 1, Line 0sqlmaint.exe failed.I've searched for this error and cannot find anything to help.There's no "-S" in the path, it writes absolutely no history on theplan. I set the plan to write history in the log directory on theserver, it wrote nothing to that directory.The database doesn't get backed up but is able to be backed up manuallyto the path specified in the plan. I also have a separate job with aSQL backup statement in it that works OK so SQLAgent is working.

View 9 Replies View Related

Sqlmaint.exe Failed

Sep 6, 2007



I am using SQL 2000,everyday we are running database backup plan but it shows a error like "Executed as user: NT AUTHORITYSYSTEM. sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed."
Our database recovery model is also in Full mode.Burt i don't know why its happening with us,before that database maintenance plan was working fine but for last 2 months its not working.

thanks,

-Amit

View 1 Replies View Related

SQLMAINT.EXE -- Returns Only The Switches

May 13, 2003

Hi,

I am trying to run the following:

SQLMAINT.EXE -USA -P -S abc -D db1 -CkDB -Rpt c:log_backup.rpt -DelTxtRpt 1days

But it simply returns the

SQLMaint switches and doesn't run the actual -CkDB?

Do I need to register any DLL to make this work ?

Thanks in advance,

View 3 Replies View Related

SQLMAINT - No Message Error

Feb 24, 1999

I have a situation where I am running sqlmaint on 10 - 12 databases on
the same server. All of them run successfully; However, one returns a
failure because of no message. MSDB is not full. There is no messages
in the errorlog. And the actual SQLMAINT executed just fine.

Any Clues?

Sometimes MS SQL is very frustrating!!!!!!!

View 4 Replies View Related

SQLMaint Error: 22029

Mar 19, 2001

I installed a new SQL Server and implementd a maintenance plan for user databases. In doing so, all the jobs seem to work except the Integrity checks. These jobs fail with the following error:
sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.

Has anyone seen this? Or has an idea how to fix it?

Thanks in advance.

way0utwest

View 1 Replies View Related

Sqlmaint.exe Failure W/MSDE 2K

Jul 29, 2004

I get the following error when I try to run the Integrity check aspect of my maintenance plan...

Executed as user: MISSIONAdministrator. sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.

Microsoft indicates this is b/c sqlmaint.exe is not installed as part of MSDE 2K and that upgrading to latest service pack will solve.

The optimizations work fine...Is there a way to invoke the integrity check w/out using the maintenance plan wizard?

View 4 Replies View Related

SQLmaint Obsolete In SQL2005!?!

Jan 7, 2005

:mad: It seems that the SQLmaint is going to obsolete in SQL 2005, what happen to my "sophisticated" SQLmaint scripts!!!! Any help or comment?

View 8 Replies View Related

Question On Sqlmaint Scripts

Dec 15, 2006

New to SQL Server.

I am looking at some legacy sqlmaint scripts.

If I don't see the switches

ReblIdx

or

UpdOptiStats

Does that mean that there are no database reorgs and no update system
catalog statistics being done?

The rebuild index switch is SQL Server speak for a reorg correct?

Thanks in advance.

Gerry

View 2 Replies View Related

Sqlmaint.exe Failed When Backup Db

Jul 23, 2005

Hi! I have a SQL 7.0. The backups created by maintenance plan workedvery well before someone shut down the server to do some servermaintenance. After restart the server, the backup job is not workingany more. All the backups created by maintenance plan are not working,including the newely created one. The message is "Server: Msg 22029, Level 16, State 1, Line 0sqlmaint.exe failed."Please help me out!! Thanks.Saiyou

View 1 Replies View Related

Dump Database Vs. Sqlmaint.exe -bkupdb

Oct 25, 1999

Both "dump database" and "sqlmaint.exe -bkupdb" would be able to backup database, one important advantage I can see from "sqlmaint" is that it has the option to cleanup the very old generations of backups by using -delbkups option in a scheduled maintenance backup job, while the "dump database" would first create a dump device and it'll grow with time.
Is there any suggested way to use the "dump transaction" but still we can get control on the size of dasd used ?
Any negative part of using "sqlmaint" utitity to backup database as compared to the "dump database " utility ?
Anthony

View 3 Replies View Related

SQLMaint Insists On DUMP DATABASE

Oct 13, 1999

We run SQLMaint hourly ( as a scheduled task ) to clear our transaction logs. Last night our hard drive filled up during a log dump, causing SQLMaint to fail, and a subsequent transaction filled up the log.

We succeeded in manually truncating and clearing the log, but SQLMaint still insists on us doing a DUMP DATABASE to clear the logs before it will run again. Unfortunately, we do not have enough space left on our hard drive to do a full database dump.

Is there any way of fooling SQLMaint into believing that a DUMP has been run? Some flag in a system table somewhere, or maybe a registry entry?

John Morrison
Hurst, TX

View 2 Replies View Related

SQLMaint Integrity Checks Failure

Aug 30, 2005

My SQLMaint integrity checks consistently fail when the "Repair any minor problems" option is checked. The reported reason is that the database must be in single user mode. This doesn't seem practical. Am I missing an option somewhere?

View 1 Replies View Related

SQL Server SQLMAINT And Disk Space

Oct 17, 2006

Hi,
I have a 250 GB database and not much space left on the disk drive. I want to run SQLMAINT to do optimization and integrity checks on this db. My question is : How much work space does SQLMAINT need to perform these tasks?.
Thanks in advance for your help.
F.

View 1 Replies View Related

Problem In Using Sqlmaint In Command Prompt

Feb 13, 2004

Hi,

I try to backup DB (DatabaseA) in ServerA using sqlmaint utility in command prompt.

The sqlmaint.exe does reside in ..MssqlBinn Folder.

Below is the command i used (MS-DOS):
..Binn>sqlmaint -S ServerA -U "sa" -P "########" -D DatabaseA
-BkUpDB C:Temp -HtmlRpt BackupRpt.html

When I execute the command, it only shows a list of the commands as if I execute -? command. There's NO any other messages that indicate the backup command is being executed.

When I check in the C:Temp folder, there's no BackupRpt.html file.

Anyone got any idea?

Thanks.

View 5 Replies View Related

Error 1105 When Using SQLMaint To Reindex Tables

Apr 22, 2004

I have a standard reorganise/reindex job running against a 32GB database on SQl Srever 2000. When trying to run the job it fails and returns Error 1105 <'PRIMARY' filegroup is full>. What's confusing me is that I have 53GB free on the drive on which my Primary file group sits.

Has anyone else come accross this problem when trying to set up a regular reindex job?

(more detail) the maintenance plan only includes the reorganisation/reindex job, no other jobs - including backing up the DB - are included. The DB in question is the only DB on the server: it's a test server.

View 2 Replies View Related

Rebuild Index Using Sqlmaint Utility - Truncate Log On Checkpoint

Jan 2, 2003

Hi Guys,

Still I have problem with the DBCC DBReindex which results in large size transaction log equivalent to the backup even after I tried the checkpoint command after this job doesn't change anything.

(as we cannot change to DBCC INDEXDEFRAG for all the indexes.
)

Is that Ok if we have a truncate log on checkpoint set to true when this job runs and make the truncate log on checkpoint to false after the job

And then run a full backup. Will that helps.

Please help.

-Anu

View 4 Replies View Related

SQLMaint Runs Clean BUT Sched Task Fails

Jun 18, 1999

I have a number of test databases which were created from the same backup. Set up SQLMaint to run on them each night. SQL Maint seems to run clean on all of them, but on two the Scheduled Task shows "Failed". All tasks have been set up exactly the same.

Has anyone run into something like this?

Here's the output from the maintenance job for one of the failing db's:



Microsoft (R) SQLMaint Utility, Version 6.50.240
Copyright (C) Microsoft Corporation, 1995 - 1996

Logged on to SQL Server 'COSTGUARD2' as 'sa' (trusted)
Starting maintenance of database 'Test15' on Thu Jun 17 23:10:01 1999

[1] Check Data and Index Linkage...

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

[2] Check Data and Index Allocation...

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

[3] Check System Data...

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

[4] Update Statistics...

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

End of maintenance for database 'Test15' on Thu Jun 17 23:10:30 1999

SQLMAINT.EXE Process Exit Code: 0 (Success)

View 2 Replies View Related

Sqlmaint.exe Failed. [SQLSTATE 42000] (Error 22029). The Step Failed.

Jan 3, 2001

I get the following error when I try to run my scheduled job.
sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.


Any ideas Thanks in advance
Reddy

View 1 Replies View Related

Log Shipping Failure Sqlmaint.exe Failed. [SQLSTATE 42000] (Error 22029). The Step Failed.

Sep 13, 2001

I have log shipping set up between 2 SQL 2000 SP1 Servers on Win 2000. The db is small 10 meg, and when the restore job on the backup server fails I am getting "sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed." as the message, the maint paln on the primary server show no error. Anyone seen this before? The restore has worked 3 out of 5 times

View 2 Replies View Related







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