RS First Dynamics NAV Blog


...from NAV 3.60 to NAV 2013
Archivio Posts
Anno 2015

Anno 2014

Anno 2013

Anno 2012

Anno 2011

Anno 2010

Anno 2009

Anno 2008

Anno 2007

Porting Database SQL Serrver (da SQL2000 a SQL2008R2)

Porting Database SQL Serrver (da SQL2000 a SQL2008R2)

SCENARIO
portare un database da SQL2000 a SQL2008 R2:
è possibile fare un restore dal formato SQL2000 al formato SQL2008R2, non viene controllata versioning
come avviene invece per versioni più recenti.


PASSI DA SEGUIRE
1) Prendere un backup del Db 2000
2) Creare un nuovo db su SQL 2008 R2 tramite "ripristino"


TUNING DOPO UPGRADE RELEASE
Dopo aver eseguito un  restore di un backup SQL Server 2000 su una istanza 2005, 2008 o 2008 R2
seguire i seguenti passi:

1) Modificare il compatibility level (sp_dbcmptlevel) (o da console modificare versioning 2000>2008)
2) Assegnare un nuovo db owner (sp_changedbowner)
3) Aggiornare tutte le statistiche (EXEC sys.sp_MSforeachtable 'UPDATE STATISTICS ? WITH FULLSCAN;';)
4) Ricostruire tutti gli indici (DBCC DBREINDEXALL)

Benvenuti su SQL2008R2!

Categoria: Sql Server ALL
martedì, 15 feb 2011 Ore. 14.45

Messaggi collegati


Statistiche
  • Views Home Page: 457.868
  • Views Posts: 873.445
  • Views Gallerie: 0
  • n° Posts: 343
  • n° Commenti: 0
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003