更新数据库中表的统计信息
程序员文章站
2022-04-20 19:06:24
...
IF EXISTS(SELECT name FROM sys.databases WHERE name=N'Test') BEGIN USE Test EXEC sp_updatestats END GO
IF EXISTS(SELECT name FROM sys.databases WHERE name=N'Test') BEGIN USE Test EXEC sp_updatestats END GO