KB3027214 - FIX: Maintenance Plan performs offline index rebuild for large object table in SQL Server 2012 or SQL Server 2014

Applies To
SQL Server 2012 Developer SQL Server 2012 Enterprise SQL Server 2012 Express SQL Server 2012 Standard SQL Server 2012 Web SQL Server 2014 Developer - duplicate (do not use) SQL Server 2014 Enterprise - duplicate (do not use) SQL Server 2014 Standard - duplicate (do not use)

Symptoms

Assume that you run a Rebuild Index task (Maintenance Plan) in Microsoft SQL Server 2012 or SQL Server 2014 and that the index contains one or more XML, varchar(max), nvarchar(max) or varbinary(max) columns. In this situation, the task is performed as an offline operationeven if you’veselected the Keep index online while reindexing checkbox in Maintenance Plan Wizard

Note Microsoft SQL Server 2012 introduces a new feature that allows indexes containing XML, varchar(max), nvarchar(max), and varbinary(max) columns to be created, rebuilt, and dropped as an online operation.

Cause

This issue occurs because Maintenance Plan does not take account of the new feature.

Resolution

This issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 2 for SQL Server 2014 SP1 /en-us/help/3075950

Cumulative Update 6 for SQL Server 2014 /en-us/help/3031047

Cumulative Update 4 for SQL Server 2012 SP2 /en-us/help/3007556

About cumulative updates for SQL Server

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

      

Workaround

To work around this issue, follow these steps:

  1. Open Maintenance Plan in Management tree view node in Object Explorer in SQL Server Management Studio.
  2. Right-click Rebuild Index Task and then click Edit.
  3. Click View T-SQL and then copy the Transact-SQL statement to a plain text file.
  4. Modify the Transact-SQL statement to use online operation, ONLINE=OFF to ONLINE=ON.
  5. Run the Transact-SQL statement or create a new SQL Server Agent T-SQL job for the Transact-SQL statement and then schedule it.

References

For more information about this new feature in SQL Server 2012, see online index create, rebuild, and drop.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.