运行迁移脚本 8 以列出含有未链接工作区的项目
适用于: Project Server 2010
上一次修改主题: 2010-10-05
运行脚本 8 可列出必须重新链接到其项目工作区的 Microsoft Office Project Server 2007 项目。此脚本比较脚本 4(具有相关工作区的迁移前 Microsoft Office Project Server 2003 项目)和脚本 6(具有相关工作区的迁移后 Office Project Server 2007 项目)的结果。两个脚本的数据均存储在 ProjectServer_Migration_Data_Validation 数据库中的 dbo.Migration_PS2003_ProjectWorkspaces 和 dbo.Migration_PS2007_ProjectWorkspaces 表中。
警告
此脚本是 Project Server 虚拟迁移环境 (VME) 中包含的一系列迁移后脚本之一。可以选择是否运行这些脚本,但是强烈建议运行,以帮助检测可能阻止成功迁移数据的问题。有关可用迁移后脚本的详细信息,请参阅 Project Server VME:运行迁移后脚本(可选)。
运行脚本 8
在 VME 桌面上,单击“启动迁移过程”。这将打开显示驱动器 E 内容的 Windows 资源管理器窗口。
在 Windows 资源管理器中,双击以下文件夹:
如果您拥有一个 Project 2003 数据库,请打开“Migrate_Proj_2003_Single_DB”文件夹。
如果您拥有 Project Server 2003 拆分数据库,请打开“Migrate_Proj_2003_Split_DB”。
打开 Verification Scripts 文件夹,然后单击“VME Script 8.sql”。这将打开 SQL Server Management Studio 并显示脚本 8。
单击“执行”以运行此脚本。
所示结果是必须重新链接到其项目工作区的项目。
脚本 8
脚本 8 包含以下代码:
/*---------------------------------------------------------------------------------------
-- Script A8: Compares workspaces associated with projects pre-migration (2003) and Post-Migration (2007) ----
-- This script shows the workspaces that have not been re-linked and/or converted in the 2007 environment after migration
-- ******************************************************************************************************** --
*/
USE ProjectServer_Migration_Data_Validation
-----------------------------------------------------------------
-- List of projects with workspaces missing in 2007
-- These workspaces should be re-linked manually after migration
-----------------------------------------------------------------
select distinct [PROJ_NAME] AS 'List of Projects with Missing Workspaces in the Project Server 2007 Published database. Re-Link them manually'
from dbo.Migration_PS2003_ProjectWorkspaces
where replace([PROJ_NAME], '_Published', '') not in
(select [PROJ_NAME] from dbo.Migration_PS2007_ProjectWorkspaces)