?
Solved

ALTER INDEX command fails during Maintenance Plan - SQL Server 2005

Posted on 2010-08-16
5
Medium Priority
?
1,012 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 150 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 1350 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
There are some very powerful Dynamic Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a di…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

719 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