Unix Technical Forum

Rebuilding indices of a SQL Server 2000 DB

This is a discussion on Rebuilding indices of a SQL Server 2000 DB within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> What is the recommended frequency for the rebuilding of the indices of a SQL 2000 production DB to ensure ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server Data Warehousing

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:16 PM
Jean-Marc Filiatrault
 
Posts: n/a
Default Rebuilding indices of a SQL Server 2000 DB

What is the recommended frequency for the rebuilding of
the indices of a SQL 2000 production DB to ensure
responsiveness of the DB?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:16 PM
Varad01
 
Posts: n/a
Default Rebuilding indices of a SQL Server 2000 DB

It depends on user requirements on frequency of querying
the data,how much data is being loaded, frequency of data
load.

1. If the data is loaded everyday in the warehouse and the
users query the data from the next day itself, then its
recommended to rebuild the indexes everyday after load.

2. In some environments, data is loaded into the DWH
databases everyday but the users will be querying against
the database only till the previous week. So building the
indexes once a week is good at this scenario.

3. If the tables are too huge and everyday/week if
millions of records are loaded into the tables, updating
the statitical page is recommended (Please check
sp_updatestats from BOL )instead of rebuilding the indexes
since this takes lot of time and resources.

FYI: 1. Rebuilding the indexes is required only after
the "Logged and Minimally Logged Bulk Copy Operations" of
data load.
2.If a large amount of data in an indexed column has
been added, changed, or removed (that is, if the
distribution of key values has changed), or the table has
been truncated using the TRUNCATE TABLE statement and then
repopulated, use UPDATE STATISTICS. To see when the
statistics were last updated, use the STATS_DATE function.

Hope this information helps.

-Varad



>-----Original Message-----
>What is the recommended frequency for the rebuilding of
>the indices of a SQL 2000 production DB to ensure
>responsiveness of the DB?
>.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 05:16 PM
Dennis Redfield
 
Posts: n/a
Default Re: Rebuilding indices of a SQL Server 2000 DB

in general indexes do not need to be re-built in SQL Server 2K. You will
want to de-frag indexes after a lot of (non-squencial) inserts and deletes.
The de-frag can be done while the data table remains on line.
hope this helps.

dlr

"Jean-Marc Filiatrault" <anonymous@discussions.microsoft.com> wrote in
message news:01c201c39747$06f975f0$a601280a@phx.gbl...
> What is the recommended frequency for the rebuilding of
> the indices of a SQL 2000 production DB to ensure
> responsiveness of the DB?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com