更新表中的所有統計資訊
USE [YourDatabaseName];
GO
UPDATE STATISTICS YourDatabaseName;
GO
更新資料庫中的所有統計資訊
USE [YourDatabaseName];
GO
-- The following example updates the statistics for all tables in the database.
-- 慎用
EXEC sp_updatestats;
USE [YourDatabaseName];
GO
UPDATE STATISTICS YourDatabaseName;
GO
USE [YourDatabaseName];
GO
-- The following example updates the statistics for all tables in the database.
-- 慎用
EXEC sp_updatestats;