x
login about faq Site discussion (meta-askssc)

Can I run the Rebuild index for compatibility level 80 database in sqlserver 2005?

Can I run the Rebuild index for compatibility level 80 database in sqlserver 2005?

[Edit - additional information:]
And I got a 60 tables are have heigh fragmentation so can I do the rebuild index and reorganize index by using DMV On compatibility level 80 database in sql server 2005?

more ▼

asked Sep 06 '11 at 12:36 AM in Default

sql server 2005 gravatar image

sql server 2005
11 1 1 2

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

Yes you can.

If you have Enterprise Edition, you can even perform this as an online operation (uncomment the second line below if you want to do that).

ALTER INDEX [index_name] ON [schema].[table_name] REBUILD
--WITH (ONLINE = ON) 
more ▼

answered Sep 06 '11 at 12:42 AM

WilliamD gravatar image

WilliamD
25.4k 16 18 41

thanks for your reply.... and go through the question once again please. I added another doute..

Sep 06 '11 at 03:21 AM sql server 2005
(comments are locked)
10|1200 characters needed characters left

I suggest you use Michelle Uffords Index Defrag-scripts http://sqlfool.com/2011/06/index-defrag-script-v4-1/.

I have them scheduled to run weekly for all databases - they check the fragmentation and reorganize when suitable, rebuild when suitable.

Regarding the question about DMV and compatibility level 80 - I think you should read this article at SqlSkills: A DBA myth a day: (13/30) you cannot run DMVs when in the 80 compat mode (T-SQL Tuesday #005)

more ▼

answered Sep 06 '11 at 03:38 AM

Magnus Ahlkvist gravatar image

Magnus Ahlkvist
13.7k 13 17 30

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x1843
x114
x17
x17

asked: Sep 06 '11 at 12:36 AM

Seen: 1074 times

Last Updated: Sep 06 '11 at 03:39 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.