移行スクリプト 2 を実行してデータについての統計情報を把握する

 

適用先: Project Server 2010

トピックの最終更新日: 2013-12-18

移行スクリプト 2 は、Microsoft Office Project Server 2003 データの移行を支援するために Project Server 仮想移行環境 (VME) に含まれている移行スクリプトの 1 つです。スクリプト 2 を実行すると、移行を計画する Project Server 2003 データベースに格納されているプロジェクト データについての統計情報を把握できます。

警告

このスクリプトは、Microsoft Office Project Server 2003 仮想移行環境 (VME) に含まれているいくつかの移行前スクリプトの 1 つです。このスクリプトの実行は必須ではありませんが、正常なデータの移行を妨げる可能性のある問題の検出に役立ちますので、実行することを強く推奨します。利用可能な移行前スクリプトの詳細については、「Project Server VME: 移行前スクリプトを実行する (オプション)」を参照してください。

このスクリプトの出力では、以下の情報が示されます。

  • データベースのサイズ (プロジェクト テーブル データベースおよび Web テーブル データベース)

  • プロジェクトの数

  • 挿入されたプロジェクトの数

  • プロジェクト間リンクの数

  • タスクの数

  • 割り当ての数

  • エンタープライズ リソースの数

  • 使用中のユーザー設定フィールドの数

  • プロジェクト認証ユーザーの数

  • Windows 認証ユーザーの数

  • セキュリティ グループの数

  • セキュリティ カテゴリの数

  • Windows SharePoint Services との統合の有無

  • リンクされている案件の数

  • リンクされているリスクの数

  • リンクされているドキュメントの数

  • ユーザー設定された Office Project Web Access ビューの数

このスクリプトの出力では、移行する Project Server 2003 データについての情報が得られます。これらのデータの一部を使用して、移行プロセスに要する時間を大まかに見積もることができます。一般に移行プロセスは、移行するプロジェクト 1 件につき約 30 秒~ 1 分を要しますが、割り当ての数、タスク、コンピューターの処理速度など、いくつかの要因によっても変わります。したがって、たとえば Project Server 2003 データベースに 600 件のプロジェクトが含まれている場合、プロジェクト 1 件につき 1 分かかると仮定すると、移行には約 10 時間を要することになります。

スクリプト 2 を実行するには

  1. VME デスクトップで [移行プロセスの開始] をクリックします。エクスプローラーのウィンドウが開いてドライブ E の内容が表示されます。

  2. エクスプローラーで、次のフォルダーをダブルクリックします。

    • Project Server 2003 データベースが 1 つの場合は、Migrate_Proj_2003_Single_DB フォルダーを開きます。

    • Project Server 2003 データベースが分割されている場合は、Migrate_Proj_2003_Split_DB を開きます。

  3. Verification Scripts フォルダーを開き、VME Script 2.sql をクリックします。SQL Server Management Studio が開き、スクリプト 2 が表示されます。

  4. [実行] をクリックしてスクリプトを実行します。

  5. スクリプトの結果を確認して、データについての情報を取得します。

スクリプト 2

スクリプト 2 には以下のコードが含まれています。

/*-----------------------------------------------------------------------------------------------------------
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