Solved

SQL Server 2000 sqlmaint.exe maintenance plan execution error

Posted on 2008-10-09
3
1,858 Views
Last Modified: 2012-05-05
I am experiencing a problem with my maintenance plans running under SQL Server 2000 running on Windows 2000. I suspect that the error (below) is occurring due to permissions problems with the user executing the maintenance plan. What permissions does the executing user need to hold and where do I verify this and change the details if necessary?

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

Executed as user: NT Authority\SYSTEM. sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The Step failed.

0
Comment
Question by:james_j_hedges
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Jerryuk007
ID: 22677043
It seems MSSQL Services are started using Local System Account.
Sometimes when getting this error, a restart of MSSQL (or Server reboot) helps... (Of course make sure that MSSQL Agent is configured properly and started)

Also it's generally better to start MSSQL using a Domain User Account (also Local Administrator on the Database Server) as this generally give more "flexibility" over what you can do especially if you need that server to access Server Resources...

Jerry
0
 

Author Comment

by:james_j_hedges
ID: 22678275
Upon further investigation, it looks more like this is a generic error that is the result of one or more parts of that particular component of the maintenance plan failing. For example, not being able to perform optimisation jobs on databases that are not in single-user mode. In this instance, I suspect that this had nothing to do with permissions and more to do with SQL Server 2000's lack of detailed error reporting.
0
 
LVL 6

Accepted Solution

by:
Jerryuk007 earned 500 total points
ID: 22685699
You're right on that. This error lacks details and is really generic.
In fact, often you will get it when MSSQL doesn't know what to say... ;-)

I don't believe Optimisation Jobs need the databases to be in Single User Mode though it's better if they are else you might get a warning about "spurius records..." or something.

Have you try a restart of MSSQL Services ?

Jerry
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question