Solved

SQLServer 2008

Posted on 2011-03-17
5
266 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
  • 2
  • 2
5 Comments
 
LVL 4

Assisted Solution

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

Assisted Solution

by:LeDaouk
LeDaouk earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now