﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 7,2000 / Performance Tuning  / Query to Rebuild Indexes on SQL Server 2000 Database / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 01:28:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Query to Rebuild Indexes on SQL Server 2000 Database</title><link>http://www.sqlservercentral.com/Forums/Topic1096678-65-1.aspx</link><description>I found this useful bit of code :Run the following script changing the xxx for the database name, run against master.SELECT 'dbcc dbreindex(''xxxxxxx.DBO.' +name+ ''')' FROM sysobjects WHERE xtype='U' This will generate a rebuild statement for each index, copy the output from the results window and paste it to the QueryAnalyzer window and run against the right database. This can obviously be repeated for each database as required.</description><pubDate>Wed, 31 Oct 2012 09:50:56 GMT</pubDate><dc:creator>Pete.murray</dc:creator></item><item><title>RE: Query to Rebuild Indexes on SQL Server 2000 Database</title><link>http://www.sqlservercentral.com/Forums/Topic1096678-65-1.aspx</link><description>[quote][b]vamshi.sql (4/20/2011)[/b][hr]Hi,Can anyone please let me know the query to rebuild all the indexes in an SQL Server 2000 Database??I need to rebuild all the indexes in  database at a time using single query.Thanks in advance,Vamshi.[/quote]Vamshi,You can get the script here.[url=http://www.sqlserverblogforum.com/2011/03/index-defragmentation-script-for-sql-server-2000/][u] SQL server 2000 Index rebuild script[b][/b][/u][/url]</description><pubDate>Thu, 21 Apr 2011 06:17:36 GMT</pubDate><dc:creator>muthukkumaran Kaliyamoorthy</dc:creator></item><item><title>RE: Query to Rebuild Indexes on SQL Server 2000 Database</title><link>http://www.sqlservercentral.com/Forums/Topic1096678-65-1.aspx</link><description>No need to post yet again. I've asked the mod to move the thread.</description><pubDate>Wed, 20 Apr 2011 23:34:40 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Query to Rebuild Indexes on SQL Server 2000 Database</title><link>http://www.sqlservercentral.com/Forums/Topic1096678-65-1.aspx</link><description>You posted in a SQL 2008 forum. Not that you won't receive help, but you may have better luck posting your question in one of the SQL 2000 forums. [url=http://www.sqlservercentral.com/Forums/Group406.aspx]http://www.sqlservercentral.com/Forums/Group406.aspx[/url]</description><pubDate>Wed, 20 Apr 2011 21:36:14 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>Query to Rebuild Indexes on SQL Server 2000 Database</title><link>http://www.sqlservercentral.com/Forums/Topic1096678-65-1.aspx</link><description>Hi,Can anyone please let me know the query to rebuild all the indexes in an SQL Server 2000 Database??I need to rebuild all the indexes in  database at a time using single query.Thanks in advance,Vamshi.</description><pubDate>Wed, 20 Apr 2011 16:26:11 GMT</pubDate><dc:creator>vamshi.sql</dc:creator></item></channel></rss>