Answers:
只需重新启动SQL Server服务或仅需输入框即可。如果要绝对新鲜,则可能要删除上次运行时用户创建的统计信息。
SELECT stats.name, objects.name, schemas.name,objects.create_date
FROM sys.stats
JOIN sys.objects ON stats.OBJECT_ID = objects.OBJECT_ID
JOIN sys.schemas ON objects.schema_id = schemas.schema_id
WHERE stats.stats_id > 0
AND stats.stats_id < 255
AND objects.is_ms_shipped = 0
AND auto_created = 1
order by objects.create_date desc