Solved

SQL Server 2000 sqlmaint.exe maintenance plan execution error

Posted on 2008-10-09
3
1,861 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

724 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