Skip to content

Commit 90e30b2

Browse files
sommarskogrwestMSFT
authored andcommitted
Update sp-updatestats-transact-sql.md
Seems that there is little reason to talk about compat level 90 in these days, so I removed that part. Update update-statistics.md Corrected link, so that it matches the link text.
1 parent 6cfd6f3 commit 90e30b2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/relational-databases/statistics/update-statistics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ Leverage solutions such as [Adaptive Index Defrag](https://github.com/Microsoft/
115115

116116
## Next steps
117117

118-
For more information, see [UPDATE STATISTICS (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-updatestats-transact-sql.md).
118+
For more information, see [UPDATE STATISTICS (Transact-SQL)](../../t-sql/statements/update-statistics-transact-sql.md).

docs/relational-databases/system-stored-procedures/sp-updatestats-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ For disk-based tables, `sp_updatestats` updates statistics based on the `modific
5353

5454
`sp_updatestats` can trigger a recompile of stored procedures or other compiled code. However, `sp_updatestats` might not cause a recompile, if only one query plan is possible for the tables referenced and the indexes on them. A recompilation would be unnecessary in these cases even if statistics are updated.
5555

56-
For databases with a compatibility level below 90, executing `sp_updatestats` doesn't preserve the latest NORECOMPUTE setting for specific statistics. For databases with a compatibility level of 90 or higher, `sp_updatestats` does preserve the latest NORECOMPUTE option for specific statistics. For more information about disabling and re-enabling statistics updates, see [Statistics](../statistics/statistics.md).
56+
`sp_updatestats` preserves the latest NORECOMPUTE option for specific statistics. For more information about disabling and re-enabling statistics updates, see [Statistics](../statistics/statistics.md).
5757

5858
When restoring a database to [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)] from a previous version, you should execute `sp_updatestats` on the database. This is related to setting proper metadata for the [statistics auto drop feature](../statistics/statistics.md#auto_drop-option) introduced in [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)]. The auto drop feature is available in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)], [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)], and starting with [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)].
5959

0 commit comments

Comments
 (0)