SQL Flow Field Guide

STATS_DATE

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

catalog lookup

What changes

Input
catalog metadata (object, column, index, file, database properties)
Output or change
id, name or property value
Return type
Returns datetime on success. Returns NULL if a statistics blob was not created.

Syntax at a glance

STATS_DATE ( object_id , stats_id )

Work example

Read when statistics for an index or statistic were last updated.

Use schema-qualified names and test missing and permission-hidden objects separately.

Check your work Null can mean statistics are absent or metadata is not visible.

Open Microsoft Learn for full syntax, permissions, and details for your version.