SHARE
TWEET

Untitled

SQLSoldier Jan 14th, 2015 191 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Select OBJECT_SCHEMA_NAME(S.object_id) + N'.' + OBJECT_NAME(S.object_id) TableName,
  2.         S.name StatsName,
  3.         S.stats_id,
  4.         SP.*
  5. From sys.stats S
  6. Cross Apply sys.dm_db_stats_properties(S.object_id, S.stats_id) SP
RAW Paste Data
Top