Solved

IndexOptimize Script Failed

Posted on 2012-03-22
2
1,319 Views
Last Modified: 2012-03-24
I have a scheduled maintenance job that IndexOptimize provided by one of the sql server expert (Ola Hallengren).

The job is scheduled and it succeeded in my other SQL Server Instances except for one of the Instance that return error when the job was run.

Here is the job step.

Schedule Job Step:

EXECUTE dbo.IndexOptimize @Databases = 'USER_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 5,
@FragmentationLevel2 = 30,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y',



Error Message:

Executed as user: login\user. ... Version: 9.00.4035.00  Edition: Standard Edition  
Procedure: [master].[dbo].[IndexOptimize]  Parameters: @Databases = 'USER_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 5, @FragmentationLevel2 = 30, @PageCountLevel = 1000, @SortInTempdb = 'N', @MaxDOP = NULL,
@FillFactor = NULL, @PadIndex   DateTime: 2012-03-17 01:00:00  
Database: [mydatabase]  
Status: ONLINE  
Mirroring role: N/A  
Standby: No  
Updateability: READ_WRITE  User access: MULTI_USER  Is accessible: Yes  
Recovery model: FULL [SQLSTATE 01000] (Message 50000)  DateTime: 2012-03-17 01:00:01  
Command: UPDATE STATISTICS [eradicate].[dbo].[benefit] [_WA_Sys_00000002_060DEAE8] [SQLSTATE 01000] (Message 50000)  Outcome: Succeeded  
Duration: 00:00:00  
DateTime: 2012-03-17 01:00:01 [SQLSTATE 01000] (Message 50000)  DateTime: 2012-03-1...  The step failed.
0
Comment
Question by:Favorable
2 Comments
 
LVL 23

Accepted Solution

by:
Racim BOUDJAKDJI earned 500 total points
Comment Utility
The error message does tell much as part of job error output.  Please run the IndexOptimize manually to get a more complete error message.
0
 

Author Closing Comment

by:Favorable
Comment Utility
I eventually added an output location.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
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…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now