Solved

SQLServer 2008

Posted on 2011-03-17
5
267 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
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

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.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

22 Experts available now in Live!

Get 1:1 Help Now