Solved

ALTER INDEX command fails during Maintenance Plan - SQL Server 2005

Posted on 2010-08-16
5
958 Views
Last Modified: 2012-05-10
Hi,

During the execution of maintenance plan, it rebuilds the indexes on the tables.  An ALTER INDEX command is executed, but the command stalled and hung the maintenance job.  Error that was reported in the log said it failed (see the error message below).

I am not sure what to do with this error or how to fix the error.  Appears to be a problem with the index [a215_ix1_a]  being used for the table [a255].

What could I do to resolve the error?

Rebuild Index (TOMLINSON)
Rebuild index on Local server connection
Databases: pbtf_ArcSDE
Object: Tables and views
Original amount of free space
Task start: 2010-08-16T10:17:13.
Task end: 2010-08-16T12:18:07.
Failed:(-1073548784) Executing the query "ALTER INDEX [a215_ix1_a] ON [cf_pbtf].[a255] REBUILD WITH ( PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, SORT_IN_TEMPDB = OFF, ONLINE = OFF )
" failed with the following error: "A severe error occurred on the current command.  The results, if any, should be discarded.
A severe error occurred on the current command.  The results, if any, should be discarded.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Open in new window

0
Comment
Question by:gtrapp
[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
  • 3
5 Comments
 
LVL 7

Assisted Solution

by:lundnak
lundnak earned 50 total points
ID: 33450085
Did you receive any errors in the SQL Server error log at around 12:18:07.  If so, could you post them?
0
 

Author Comment

by:gtrapp
ID: 33450270
No errors in the SQL Server log and nothing in the Event View.

Is there something that I could do with the index or the table?
0
 
LVL 8

Accepted Solution

by:
dba2dba earned 450 total points
ID: 33451282
The error message you see is a generic error. I have received similar error with a backup failure due to space issues.

Did you check the log space in the database while the index rebuild is executing, please check it using dbcc sqlperf while the job runs and ensure that the log has enough space for index rebuild.

You can also use an output file in the maintenance plan job properties, it might log additional details when it fails. Also, you could try running the alter index command in the error in Management Studio, to see if you get any errors.

Thanks.
0
 

Author Comment

by:gtrapp
ID: 33458870
I checked the log file size during the execution of the job and the size showed the usage was only 2%. 1.5 GB was available.

What I did to solve the problem was restart the ArcSDE service. Then, the backup completed successfully.
0
 

Author Closing Comment

by:gtrapp
ID: 33458892
I restarted the service and clearned out locks on tables and objects in the database and that cleared the problem.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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