Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Analze Stats

Author  Topic 

frank.svs
Constraint Violating Yak Guru

368 Posts

Posted - 2007-11-10 : 03:26:18

Hi pals,

Basically i am from Oracle background. I need some help.
In oracle we gather the statistics of a table as
SQL> analyze table <tname> compute statistics for all indexes;

or
SQL> EXEC DBMS_STATS.gather_schema_stats('SCOTT')

I want to gather statistics for a particular database say."pubs" for example.

How to do that?

Any suggestions are appreciated.

Thanks.
Franky


rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-11-10 : 23:10:29
UPDATE STATISTICS TAB_NAME, find details in books online.
Go to Top of Page
   

- Advertisement -