Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updated Statistics for tables in sql 2000 1

Status
Not open for further replies.

manmaria

Technical User
Aug 8, 2003
286
US
How do I know which tables are upto the date for the Stats?
I need this for sqlserver 2000.

TIA
 
Try this:

Code:
SELECT 'Index Name' = i.name, 
   'Statistics Date' = STATS_DATE(i.id, i.indid)
FROM sysobjects o, sysindexes i
WHERE o.id = i.id
GO
Or you can update the script to use JOINs. This is out of the BOL.

-SQLBill

The following is part of my signature block and is only intended to be informational.
Posting advice: FAQ481-4875
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top