?
Solved

SQL Server 2000 sqlmaint.exe maintenance plan execution error

Posted on 2008-10-09
3
Medium Priority
?
1,897 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 1500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

649 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