Solved

SQLServer 2008

Posted on 2011-03-17
5
271 Views
Last Modified: 2012-05-11
Hello, I move a database from a SQL server 2005 to a SQL Server 2008 by doing a backup and restore.
I would like to know if the indexes must be rebuild on the database in the SQL Server 2008 and if so how do I do this.

Thanks
0
Comment
Question by:vera2006
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Assisted Solution

by:LeDaouk
LeDaouk earned 200 total points
ID: 35155034
no you don't have to rebuild them
0
 
LVL 4

Assisted Solution

by:LeDaouk
LeDaouk earned 200 total points
ID: 35155044
also you can do it by de-attach database from sql 2005 and re-attach the database in sql 2008 it is fater if you have huge databases. but make bake to be on the safe side
0
 
LVL 4

Assisted Solution

by:qasim_md
qasim_md earned 100 total points
ID: 35155045
In case you want to rebuild indexes anytime the syntax is

dbcc dbreindex(table_name)
0
 
LVL 14

Accepted Solution

by:
Daniel_PL earned 200 total points
ID: 35155049
No, indexes are in the backup. So after restore you'll retain indexes at the same state.
For reindexing you have DBCC DBREINDEX
http://msdn.microsoft.com/en-us/library/ms181671.aspx
0
 
LVL 14

Assisted Solution

by:Daniel_PL
Daniel_PL earned 200 total points
ID: 35155072
If you are interested I can recommend to you great scripts for reindex, statistics update and backup scripts from Ola Hallegren:
http://ola.hallengren.com/

Take care,
Daniel
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need multiple Group By's 8 55
Please explain Equi-join 3 44
Retrieving JSON data as OUT parameter in Sql Server CLR procedure 1 43
2008 to 2016 jump (SQL Server) 1 33
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question