Eseguire lo script di migrazione 2 per acquisire statistiche sui dati

 

Si applica a: Project Server 2010

Ultima modifica dell'argomento: 2013-12-18

Lo script di migrazione 2 è uno dei diversi script di migrazione inclusi in Virtual Migration Environment (VME) di Project Server per facilitare la migrazione dei dati di Microsoft Office Project Server 2003. Eseguire lo script 2 per acquisire statistiche sui dati del progetto inclusi nel database di Project Server 2003 del quale si è pianificata la migrazione.

Avviso

Questo è uno dei diversi script pre-migrazione inclusi in Virtual Migration Environment (VME) di Microsoft Office Project Server 2003. 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 pre-migrazione disponibili, vedere VME di Project Server: eseguire gli script per la pre-migrazione (facoltativo).

L'output di questo script consente di ottenere informazioni sui seguenti elementi:

  • Dimensioni dei database (database delle tabelle di Project e delle tabelle Web)

  • Numero di progetti

  • Numero di progetti inseriti

  • Numero di collegamenti tra progetti

  • Numero di attività

  • Numero di assegnazioni

  • Numero di risorse organizzazione

  • Numero di campi personalizzati in uso

  • Numero di utenti autenticati di Project

  • Numero di utenti autenticati di Windows

  • Numero di gruppi di sicurezza

  • Numero di categorie di sicurezza

  • Se è presente l'integrazione di Windows SharePoint Services

  • Numero di problemi collegati

  • Numero di rischi collegati

  • Numero di documenti collegati

  • Numero di visualizzazioni personalizzate di Office Project Web Access

L'output di questo script consente di ottenere informazioni sui dati di Project Server 2003 di cui si sta per eseguire la migrazione. In base ad alcuni di questi dati è possibile creare una stima globale sulla durata del processo di migrazione. In generale il processo di migrazione richiederà da 30 secondi a un minuto per ogni progetto in fase di migrazione, ma la durata può variare in base ad alcuni fattori, ad esempio numero di assegnazioni, attività, velocità del computer e così via. Se il database di Project Server 2003 include 600 progetti, la migrazione richiederà pertanto circa 10 ore, in base alla stima di un minuto per progetto.

Per eseguire lo script 2

  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 Server 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 2.sql. Verrà aperto SQL Server Management Studio e verrà visualizzato lo script 2.

  4. Fare clic su Execute per eseguire lo script.

  5. Verificare i risultati dello script per informazioni sui dati.

Script 2

Nello script 2 è incluso il codice seguente:

/*-----------------------------------------------------------------------------------------------------------
Script A2: Project Server 2003 Database Profile
This script reads the Project Server 2003 database (Project Tables and View Tables may be in the same or separate database)
-------------------------------------------------------------------------------------------------------------*/
use <Enter "Project Tables" database name>

--Total size of DB 
exec sp_spaceused 

--Number of projects in the database
select count(*) as 'Total Number of Projects in 2003' from msp_projects

--Number of inserted projects
select count(*) as 'Number of Inserted Projects in 2003' 
  from MSP_TEXT_FIELDS where TEXT_FIELD_ID = 188743706

--Number of cross-project links
select count(*) as 'Number of cross-project links in 2003' 
  from MSP_TEXT_FIELDS 
  where TEXT_FIELD_ID = 239075346 or TEXT_FIELD_ID = 239075347

--Number of total tasks, assignments in the system
select count(*) as 'Number of tasks in 2003' from msp_tasks
select count(*) as 'Number of assignments in 2003' from msp_assignments

--Number of Enterprise resources (in ResGlobal)
select count(*) as 'Number of Enterprise Resources in 2003' 
  from msp_resources where proj_id = 1 and res_name is not null

--Number of custom fields in use
select count(*) as 'Number of Custom Fields in use in 2003' 
  from msp_field_attributes 
  where attrib_id = 206 and proj_id in (select proj_id 
  from msp_projects where proj_type =2 )

/*-----------------------------------------------------------------------------------------------------------
This script reads the Project Server 2003 database (Project Tables and View Tables may be in the same or separate database)
-------------------------------------------------------------------------------------------------------------*/

use <Enter "Web Tables" database name>

--Total size of DB 
exec sp_spaceused 

--Number of Project Authenticated users, Windows authenticated users
select count(*) as 'Number of Project Authenticated users in 2003'  
  from MSP_WEB_RESOURCES 
  where WRES_USE_NT_LOGON = 0 
  and WRES_CAN_LOGIN <>0 and WRES_COUNT_LICENSE <> 0
select count(*) as 'Number of Windows Authenticated users in 2003' 
  from MSP_WEB_RESOURCES 
  where WRES_USE_NT_LOGON <> 0 
  and WRES_CAN_LOGIN <>0 and WRES_COUNT_LICENSE <> 0

--Number of security groups,security categories
select count(*) as 'Number of Security Groups in 2003' 
  from MSP_WEB_SECURITY_GROUPS
select count(*) as 'Number of Security Categories in 2003' 
  from MSP_WEB_SECURITY_CATEGORIES

--Is there any Windows SharePoint Services integration ?
select count(*)  as 'Is there any Windows SharePoint Services Integration in 2003?' 
  from msp_web_admin where WADMIN_CURRENT_STS_SERVER_ID <> -1

--Number of linked issues, risks, documents 
-- (indicates how much Windows SharePoint Services integration is used)
select count(*) as 
  'Number of linked Windows SharePoint Services issues/risks/documents in 2003' 
  from MSP_WEB_OBJECT_LINKS

--Number of custom Project Web Access views
select count(*) as 'Number of customer Projet Web Access views in 2003' 
  from MSP_WEB_VIEW_REPORTS where WVIEW_ID > 100