Partager via


Exécuter le script de migration 5 pour collecter une capture instantanée des données de post-migration de Project Server 2007

 

S’applique à : Project Server 2010

Dernière rubrique modifiée : 2013-12-18

Exécutez le script de migration 5 pour capturer un instantané de la base de données Microsoft Office Project Server 2007 qui contient vos données Microsoft Office Project Server 2003 migrées. Le script prend un instantané des tables Projets et Tâches, puis stocke les informations dans une table créée dynamiquement au sein du script. Les résultats stockés à partir du script peuvent être comparés par la suite aux résultats de l’instantané de pré-migration de vos données Project Server 2003 pour vérifier que toutes les données ont été migrées avec succès.

Avertissement

Ce script est l’un des scripts post-migration fournis avec l’environnement VME (Virtual Migration Environment) Project Server. L’exécution des scripts est facultative, mais vivement recommandée afin d’aider à détecter les problèmes qui peuvent empêcher la migration correcte de vos données. Pour plus d’informations sur les scripts post-migration disponibles, voir Environnement de migration virtuel Project Server : exécuter les scripts de post-migration (facultatif).

Pour exécuter Script 5

  1. Sur le Bureau VME, cliquez sur Démarrer le processus de migration. Ceci ouvre une fenêtre Explorateur Windows qui affiche le contenu du lecteur E:.

  2. Dans l’Explorateur Windows, double-cliquez sur le dossier suivant :

    • Si vous avez une base de données Project 2003, ouvrez le dossier Migrate_Proj_2003_Single_DB.

    • Si vous avez des bases de données Project Server 2003 fractionnées, ouvrez Migrate_Proj_2003_Split_DB.

  3. Ouvrez le dossier de scripts de vérification, puis cliquez sur VME Script 5.sql. SQL Server Management Studio s’ouvre et affiche Script 5.

  4. Cliquez sur Exécuter pour exécuter le script.

  5. Les résultats du script sont enregistrés dans la base de données ProjectServer_Migration_Data_Validation, dans la table intitulée dbo.Migration_PS2007_Data_Validation_Snapshot.

Script 5

Script 5 contient le code suivant :

/*---------------------------------------------------------------------------------------
-- Script A5: Capture Data Validation Snapshot for Project Server 2007 after migration---- Updated Jan 10,2010
-- This script:
-- 1. drops the PS2007 Validation Snapshot table if it exists from the Migration Validation 
      Database previously created
   2. Reads the Project Server 2007 SP2 Draft database to extract Projects and Tasks information
   3. Stores the output dataset into a new table created in the Migration Validation 
      Database
   This script requires to set the database names of the Migration Validation Database and the 
   Project Server 2007 database in the USE statements 
 ----------------------------------------------------------------------------------------------*/

USE ProjectServer_Migration_Data_Validation
IF EXISTS (SELECT id FROM dbo.sysobjects WHERE id = OBJECT_ID(N'MIgration_PS2007_Data_Validation_Snapshot')
AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
DROP TABLE dbo.MIgration_PS2007_Data_Validation_Snapshot
GO
USE [ProjectServer_Draft]
GO
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
GO
SELECT p12p.proj_name as N'Project Name',
   p12p.proj_uid as 'Project UID',
   p12p.proj_info_start_date as N'Proj Start Date',
   p12p.proj_info_finish_date as N'Proj Finish Date',
   p12p.proj_info_status_date as N'Proj Status Date',
   p12p.CAL_UID as N'Proj Calendar UID',
   p12t.task_name as N'Task Name',
   p12t.TASK_ID AS N'Task ID',
       p12t.task_type as N'Task Type',
       p12t.task_start_date as N'Task Start Date',
       p12t.task_finish_date as N'Task Finish Date',
p12t.task_act_start as N'Task Act Start',
p12t.task_act_finish as N'Task Act Finish',
p12t.task_constraint_date as N'Task Constraint Date',
p12t.task_deadline as N'Task Deadline',
p12t.task_work as N'Task Work',
p12t.task_act_work as N'Task Actual Work',
p12t.task_rem_work as N'Task Rem Work',
p12t.task_ovt_work as N'Task Ovt Work',
p12t.task_act_ovt_work as N'Task Actual Ovt Work',
p12t.task_rem_ovt_work as N'Task Rem Ovt Work',
p12t.task_pct_comp as N'Task %Complete',
p12t.task_pct_work_comp as N'Task % Work Complete',
p12t.task_phy_pct_comp as N'Task % Phys Work Complete',
p12t.task_dur as N'Task Duration',
p12t.task_rem_dur as N'Task Rem Duration',
p12t.task_act_dur as N'Task Actual Duration',
p12t.task_is_milestone as N'Task Milestone',
p12t.task_cost as N'Task Cost',
p12t.task_fixed_cost as N'Task Fixed Cost',
p12t.task_act_cost as N'Task Actual Cost',
p12t.task_rem_cost as N'Task Rem Cost',
p12t.task_ovt_cost as N'Task Ovt Cost',
p12t.task_act_ovt_cost as N'Task Actual Ovt Cost',
p12t.task_rem_ovt_cost as N'Task Rem Ovt Cost'
INTO ProjectServer_Migration_Data_Validation.dbo.MIgration_PS2007_Data_Validation_Snapshot
FROM dbo.msp_projects AS p12p,
dbo.msp_tasks AS p12t
WHERE (p12p.proj_uid = p12t.proj_uid)
  
ORDER BY 1,4 
/*---------------------------------------------------------------------------------------
-- Script A5: Capture Data Validation Snapshot for Project Server 2007 after migration---- Updated Jan 10,2010
-- This script:
-- 1. drops the PS2007 Validation Snapshot table if it exists from the Migration Validation 
      Database previously created
   2. Reads the Project Server 2007 SP2 Draft database to extract Projects and Tasks information
   3. Stores the output dataset into a new table created in the Migration Validation 
      Database
   This script requires to set the database names of the Migration Validation Database and the 
   Project Server 2007 database in the USE statements 
 ----------------------------------------------------------------------------------------------*/

USE ProjectServer_Migration_Data_Validation
IF EXISTS (SELECT id FROM dbo.sysobjects WHERE id = OBJECT_ID(N'MIgration_PS2007_Data_Validation_Snapshot')
AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
DROP TABLE dbo.MIgration_PS2007_Data_Validation_Snapshot
GO
USE [ProjectServer_Draft_Migrated]
GO
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
GO
SELECT p12p.proj_name as N'Project Name',
   p12p.proj_uid as 'Project UID',
   p12p.proj_info_start_date as N'Proj Start Date',
   p12p.proj_info_finish_date as N'Proj Finish Date',
   p12p.proj_info_status_date as N'Proj Status Date',
   p12p.CAL_UID as N'Proj Calendar UID',
   p12t.task_name as N'Task Name',
   p12t.TASK_ID AS N'Task ID',
       p12t.task_type as N'Task Type',
       p12t.task_start_date as N'Task Start Date',
       p12t.task_finish_date as N'Task Finish Date',
p12t.task_act_start as N'Task Act Start',
p12t.task_act_finish as N'Task Act Finish',
p12t.task_constraint_date as N'Task Constraint Date',
p12t.task_deadline as N'Task Deadline',
p12t.task_work as N'Task Work',
p12t.task_act_work as N'Task Actual Work',
p12t.task_rem_work as N'Task Rem Work',
p12t.task_ovt_work as N'Task Ovt Work',
p12t.task_act_ovt_work as N'Task Actual Ovt Work',
p12t.task_rem_ovt_work as N'Task Rem Ovt Work',
p12t.task_pct_comp as N'Task %Complete',
p12t.task_pct_work_comp as N'Task % Work Complete',
p12t.task_phy_pct_comp as N'Task % Phys Work Complete',
p12t.task_dur as N'Task Duration',
p12t.task_rem_dur as N'Task Rem Duration',
p12t.task_act_dur as N'Task Actual Duration',
p12t.task_is_milestone as N'Task Milestone',
p12t.task_cost as N'Task Cost',
p12t.task_fixed_cost as N'Task Fixed Cost',
p12t.task_act_cost as N'Task Actual Cost',
p12t.task_rem_cost as N'Task Rem Cost',
p12t.task_ovt_cost as N'Task Ovt Cost',
p12t.task_act_ovt_cost as N'Task Actual Ovt Cost',
p12t.task_rem_ovt_cost as N'Task Rem Ovt Cost'
INTO ProjectServer_Migration_Data_Validation.dbo.MIgration_PS2007_Data_Validation_Snapshot
FROM dbo.msp_projects AS p12p,
dbo.msp_tasks AS p12t
WHERE (p12p.proj_uid = p12t.proj_uid)
  
ORDER BY 1,4