raGadiraju
asked on
Is there a stored procedure for computing stats (like Oracle dbms_stats packege)
Hi Team:
I am relatively new to sql server 2005. I have a need to calculate stats on tables (and indexes). Is there any dbms_stats like functionality in SQL server?
Can you please guide me?
I am relatively new to sql server 2005. I have a need to calculate stats on tables (and indexes). Is there any dbms_stats like functionality in SQL server?
Can you please guide me?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
-- run from within Query Analyzer (or a T-SQL job step)
EXEC sp_updatestats