Link to home
Create AccountLog in
Avatar of raGadiraju
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?
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
That is:

-- run from within Query Analyzer (or a T-SQL job step)
EXEC sp_updatestats