|
|
Question : Rebuild index error
|
|
I have a maintenance job that run a rebuilding index job.. I've found the below error log that I amnot sure how to fix it... I am using SQL server 2005
Failed:(-1073548784) Executing the query "ALTER INDEX [aspnet_Membership_index] ON [dbo].[aspnet_Membership] REBUILD WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, SORT_IN_TEMPDB = OFF, ONLINE = ON ) " failed with the following error: "Online index operation cannot be performed for index 'aspnet_Membership_index' because the index contains column 'Comment' of data type text, ntext, image, varchar(max), nvarchar(max), varbinary(max) or xml. For non-clustered index the column could be an include column of the index, for clustered index it could be any column of the table. In case of drop_existing the column could be part of new or old index. The operation must be performed offline.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
|
Answer : Rebuild index error
|
|
Alternatively, you would need to create a custom script to perform the reindexing on the non-text indexes while online, and a seperate one to do those that are text based offline.
|
|
|
|
|