Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
Performance Tuning
»
Query to Rebuild Indexes on SQL Server 2000...
Query to Rebuild Indexes on SQL Server 2000 Database
Rate Topic
Display Mode
Topic Options
Author
Message
vamshi.sql
vamshi.sql
Posted Wednesday, April 20, 2011 4:26 PM
Valued Member
Group: General Forum Members
Last Login: Friday, April 05, 2013 2:52 PM
Points: 56,
Visits: 158
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.
Post #1096678
opc.three
opc.three
Posted Wednesday, April 20, 2011 9:36 PM
SSCertifiable
Group: General Forum Members
Last Login: Yesterday @ 9:27 PM
Points: 6,695,
Visits: 11,711
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.
http://www.sqlservercentral.com/Forums/Group406.aspx
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1096720
GilaMonster
GilaMonster
Posted Wednesday, April 20, 2011 11:34 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 12:59 PM
Points: 37,640,
Visits: 29,895
No need to post yet again. I've asked the mod to move the thread.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1096751
muthukkumaran Kaliyamoorthy
muthukkumaran Kaliyamoorthy
Posted Thursday, April 21, 2011 6:17 AM
Ten Centuries
Group: General Forum Members
Last Login: Monday, May 13, 2013 4:17 AM
Points: 1,123,
Visits: 4,422
vamshi.sql (4/20/2011)
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.
Vamshi,
You can get the script here.
SQL server 2000 Index rebuild script
Muthukkumaran Kaliyamoorthy
Helping SQL DBAs and Developers >>>
SqlserverBlogForum
Post #1096927
Pete.murray
Pete.murray
Posted Wednesday, October 31, 2012 9:50 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, October 31, 2012 10:33 AM
Points: 3,
Visits: 6
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.
Post #1379409
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.