我使用SQL Server 2008 R2,我需要重建的每一个表的索引在数据库中如何更改为每个表的索引在我的数据库
使用这个脚本,我收到一条错误
USE myDb
GO
EXEC sp_MSForEachTable 'ALTER INDEX ALL ON ? REBUILD'
错误:
ALTER INDEX failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options 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 type methods and/or spatial index operations.
任何想法如何解决它?谢谢
退房此链接:http://www.mssqltips.com/sqlservertip/1367/sql-server-script-to-rebuild-all-indexes-for-all-tables-and -all-databases /这应该适合你。 – 2011-11-30 13:22:50
谢谢鲨鱼,但我想知道我的命令中有什么问题。我会继续考虑您的资源,谢谢! – GibboK