Eseguire lo script di migrazione 9 per verificare che nei dati di Project Server 2007 non siano presenti problemi di migrazione noti

 

Si applica a: Project Server 2010

Ultima modifica dell'argomento: 2013-12-18

Eseguire lo script 9 per effettuare un controllo di convalida dei dati dei database di Microsoft Office Project Server 2007 per verificare che non siano presenti condizioni note che potrebbero impedire la corretta esecuzione di un aggiornamento a Microsoft Project Server 2010. Lo script 9 consente di controllare le condizioni seguenti:

  1. Office Project Server 2007 è aggiornato al Service Pack 2 e include l'aggiornamento cumulativo di ottobre 2009

  2. Progetti non salvati e pubblicati dall'installazione in Office Project Server 2007 del Service Pack 2 e dell'aggiornamento cumulativo di ottobre 2009

  3. Tabelle di ricerca che utilizzano nomi riservati in Project Server 2010

  4. Nomi di campi personalizzati che sono riservati in Project Server 2010

  5. Viste di Office Web Components (OWC) in Office Project Server 2007 di cui è necessario eseguire la migrazione a Excel Services per utilizzarle in Project Server 2010

  6. Account utente con nomi di accesso con autenticazione basata su moduli

  7. Nomi team a cui non è associata una tabella di ricerca o un valore

  8. Viste OWC di Analizzatore di portfolio Office Project Web Access in Project Server 2003 di cui potrebbe essere necessario eseguire la migrazione a Office Project Server 2007

Nota

Questo è uno dei diversi script post-migrazione inclusi in Virtual Migration Environment (VME) di Project Server. L'esecuzione degli script è facoltativa, ma consigliata per individuare più facilmente eventuali problemi che potrebbero impedire la migrazione corretta dei dati. Per ulteriori informazioni sugli script post-migrazione disponibili, vedere VME di Project Server: Eseguire script di post-migrazione (facoltativo).

Per eseguire lo script 9

  1. Sul desktop di VME fare clic suStart Migration Process. Verrà aperta la finestra di Esplora risorse in cui è visualizzato il contenuto dell'unità E.

  2. In Esplora risorse fare doppio clic sulla cartella seguente:

    • Se si dispone di un solo database di Project 2003, aprire la cartella Migrate_Proj_2003_Single_DB.

    • Se si dispone di database di Project Server 2003 divisi, aprire Migrate_Proj_2003_Split_DB.

  3. Aprire la cartella Verification Scripts e quindi fare clic su VME Script 9.sql. Verrà aperto SQL Server Management Studio e verrà visualizzato lo script 9.

  4. Fare clic su Execute per eseguire lo script.

  5. Verranno visualizzati i risultati. Tentare di risolvere i problemi individuati prima di procedere alla migrazione dei dati a Project Server 2010.

Per risolvere alcuni dei problemi di dati rilevati in questo script, è possibile provare a utilizzare Microsoft Office Project Professional 2007 (incluso in VME)

Script 9

Nello script 9 è incluso il codice seguente:

------------------------------------------------------------------------------
/* Pre-Migration Steps from Project 2007 SP2 to Project 2010
VME Script 12
-----------------------------------------------------------------------------*/

------------------------------------------------------------------------------
/* Check Project 2007 Version: Must be SP2 + October CU = ??
-----------------------------------------------------------------------------*/
USE ProjectServer_Draft
select Version 
as 'Project Server 2007 SP2 + Oct09CU Version Must Be 12.0.6520.5000 or Higher. If not, upgrade to SP2 + Oct2009 CU' 
, timestamp
from dbo.Versions
go
----------------------------------------------------------------------------------------------
/* Display the projects not saved or published since the installation of SP2 + December 09 CU?
----------------------------------------------------------------------------------------------*/
select Distinct PROJ_NAME AS 'List of Projects Not Saved and Published Since the Installation of Service Pack2'
,PROJ_PROP_AUTHOR, PROJ_LAST_SAVED, WPROJ_LAST_PUB
from dbo.MSP_PROJECTS 
where PROJ_TYPE = 0 
and ((dbo.MSP_PROJECTS.PROJ_LAST_SAVED < (SELECT MAX(TimeStamp) FROM dbo.Versions))
OR (dbo.MSP_PROJECTS.WPROJ_LAST_PUB < (SELECT MAX(TimeStamp) FROM dbo.Versions))) 
GROUP BY PROJ_NAME,PROJ_PROP_AUTHOR, PROJ_LAST_SAVED, WPROJ_LAST_PUB
Order by PROJ_NAME
go
------------------------------------------------------------------------------
/* Display the Lookup tables using reserved names in 2010
This query is to be run against the Published database of Project Server 2007
-----------------------------------------------------------------------------*/
USE ProjectServer_Published
select LT_NAME 
AS 'List of Lookup Table names with Reserved Names. These names must be changed before proceeding with the Upgrade'
from dbo.MSP_LOOKUP_TABLES 
WHERE LT_NAME IN
('Department',
'Project Impact',
'Relative Importance',
'Sample Areas Impacted',
'Sample Primary Objective')
-- Cost Type, Health, RBS and State are standard in 2007
go
------------------------------------------------------------------------------
/* Display the Custom Fields using reserved names in 2010
This query is to be run against the Published database of Project Server 2007
-----------------------------------------------------------------------------*/
USE ProjectServer_Published
select MD_PROP_NAME
AS 'List of Custom Fields names with Reserved Names. These names must be changed before proceeding with the Upgrade'
from dbo.MSP_CUSTOM_FIELDS 
WHERE MD_PROP_NAME IN 
('Flag Status',
'Project Departments',
'Project Impact',
'Relative Importance',
'Resource Departments',
'Sample Approved Finish Date',
'Sample Approved Start Date',
'Sample Areas Impacted',
'Sample Assumptions',
'Sample Business Need',
'Sample Compliance Proposal',
'Sample Goals',
'Sample Post Implementation Review Date',
'Sample Post Implementation Review Notes',
'Sample Primary Objectives',
'Sample Proposal Cost',
'Sample Proposed Finish Date',
'Sample Proposed Start Date')
go
---------------------------------------------------------------------------------------------------------
/* Displays Existing OWC Views in 2007 that need to be migrated to Excel Services in Project Server 2010
--------------------------------------------------------------------------------------------------------*/
select WVIEW_NAME AS 'List of PWA Data Analysis OWC Views to Migrate to Excel Services in Project Server 2010' 
FROM dbo.MSP_WEB_VIEW_REPORTS 
WHERE WVIEW_OWC_PIVOT_XML is not null
OR WVIEW_OWC_CHART_XML is not null

------------------------------------------------------------------------------
/* Displays User Accounts with Forms Auth Login Names > 249 Ch. -- on 2007
-----------------------------------------------------------------------------*/
select RES_NAME AS 'List of FBA accounts with Names > 249 Ch. Shorten the Resource Names below'
FROM dbo.MSP_RESOURCES
WHERE RES_IS_WINDOWS_USER = 0
AND (Select LEN(RES_NAME)) > 249
go
------------------------------------------------------------------------------
/* Display Team Names with no Lookup Tables and a Value -- on 2007
-----------------------------------------------------------------------------*/
select TEXT_VALUE AS 'List of Team Names with values and NO Lookup Tables. Create a LT for these Teams'
FROM dbo.MSP_RES_CUSTOM_FIELD_VALUES, dbo.MSP_CUSTOM_FIELDS, dbo.MSP_LOOKUP_TABLES
WHERE dbo.MSP_RES_CUSTOM_FIELD_VALUES.CUSTOM_FIELD_UID = dbo.MSP_CUSTOM_FIELDS.MD_PROP_UID
AND MD_PROP_NAME = 'Team Name'
AND dbo.MSP_CUSTOM_FIELDS. MD_LOOKUP_TABLE_UID IS NULL
go

------------------------------------------------------------------------------------------------------------------
/* Displays Existing PWA Portfolio Analyzer OWC Views in 2003 that may need to be migrated to Project Server 2007
-----------------------------------------------------------------------------------------------------------------*/
USE Project2003SourceDB  
select WVIEW_NAME AS 'List of PWA Portfolio Analyzer OWC Views to Migrate to Project Server 2007' 
FROM dbo.MSP_WEB_VIEW_REPORTS 
WHERE WVIEW_OWC_PIVOT_XML is not null
OR WVIEW_OWC_CHART_XML is not null