共用方式為


執行 Migration Script 8 來列示專案與未連結的工作區

 

適用版本: Project Server 2010

上次修改主題的時間: 2010-10-05

執行 Script 8 可列出必須重新連結至專案工作區的 Microsoft Office Project Server 2007 專案。此指令碼可比較 Script 4 的結果 (具有關聯工作區的移轉後 Microsoft Office Project Server 2003 專案) 和 Script 6 的結果 (具有關聯工作區的移轉後 Office Project Server 2007 專案)。這兩筆資料會儲存在 ProjectServer_Migration_Data_Validation 資料庫的 dbo.Migration_PS2003_ProjectWorkspaces 與 dbo.Migration_PS2007_ProjectWorkspaces 資料表中。

警告

此指令碼是 Project Server 虛擬移轉環境 (VME) 中所包含的多個移轉後指令碼其中之一。執行指令碼是選擇性的,但強烈建議使用它來協助偵測可能會導致資料無法成功移轉的問題。如需可用之移轉後指令碼的詳細資訊,請參閱<Project Server VME:執行移轉後指令碼 (選擇性)>。

執行 Script 8

  1. 在 VME 桌面上,按一下 [啟動移轉程序]。這會開啟顯示磁碟機 E 內容的 [Windows 檔案總管] 視窗。

  2. 在 [Windows 檔案總管] 中,按兩下下列資料夾:

    • 如果您具有一個 Project 2003 資料庫,請開啟 [Migrate_Proj_2003_Single_DB] 資料夾。

    • 如果您具有分割的 Project Server 2003 資料庫,請開啟 [Migrate_Proj_2003_Split_DB]。

  3. 開啟 [Verification Scripts] 資料夾,然後按一下 [VME Script 8.sql]。就會開啟 SQL Server Management Studio 並顯示 Script 8。

  4. 按一下 [執行] 以執行指令碼。

  5. 顯示的結果就是必須重新連結至專案工作區的專案。

Script 8

Script 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)