I am using SQL Server 2008 R2, I need to rebuild the index for each table in the database
Using this script, I get an error
USE myDb
GO
EXEC sp_MSForEachTable 'ALTER INDEX ALL ON ? REBUILD'
Error:
ALTER INDEX error because the following SET parameters have incorrect settings: "QUOTED_IDENTIFIER". Ensure that the SET parameters are correct for use with indexed views and / or indexes on computed columns and / or filtered indexes and / or query notifications and / or XML data of type and / or spatial index operation.
Any idea how to fix this? thank
source
share