Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

dbcc dbreindex and update of statistics
I have to set up a nightly job on my database to drop and reindex indexes
on my tables.    I am going to use dbcc dbreindex.  Does the dbcc dbreindex
also update the statistics on the rebuilt index or do I have to then issue
an update statistics on the table?



Report this thread to moderator Post Follow-up to this message
Old Post
Dodo Lurker
10-24-06 11:31 PM


Re: dbcc dbreindex and update of statistics
Index stats are updated automatically when you do a DBCC DBREINDEX.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Toronto, ON   Canada

"Dodo Lurker" <none@noemailplease> wrote in message
 news:s76dnQMf_dnbF4n
 YnZ2dnUVZ_rqdnZ2d@co
mcast.com...

I have to set up a nightly job on my database to drop and reindex indexes
on my tables.    I am going to use dbcc dbreindex.  Does the dbcc dbreindex
also update the statistics on the rebuilt index or do I have to then issue
an update statistics on the table?




Report this thread to moderator Post Follow-up to this message
Old Post
Tom Moreau
10-24-06 11:31 PM


Re: dbcc dbreindex and update of statistics
Dodo Lurker  wrote:
> I have to set up a nightly job on my database to drop and reindex indexes
> on my tables.    I am going to use dbcc dbreindex.  Does the dbcc dbreinde
x
> also update the statistics on the rebuilt index or do I have to then issue
> an update statistics on the table?
>
>

Consider using this script, it will rebuild only those indexes that are
badly fragmented, and you can control the method used...

http://realsqlguy.com/serendipity/a....realsqlguy.com

Report this thread to moderator Post Follow-up to this message
Old Post
Tracy McKibben
10-24-06 11:31 PM


Re: dbcc dbreindex and update of statistics
That looks like a great script..
I been trying to run dbcc show contig and then decide which ones need to
have dbcc redindex on them.

What the different from dbcc reindex and DBCC INDEXDEFRAG

is there a way to write this to a report so i can see which ones it does
during the process...thanks


"Tracy McKibben" wrote:

> Dodo Lurker wrote: 
>
> Consider using this script, it will rebuild only those indexes that are
> badly fragmented, and you can control the method used...
>
> http://realsqlguy.com/serendipity/a......htm
l
>
>
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
>

Report this thread to moderator Post Follow-up to this message
Old Post
TRACEY
10-31-06 05:15 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 09:22 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006