Previous Topic: SQL Server: Post-Upgrade Change To Event Participant TableNext Topic: Pre-Flight Check Output


1. Run the Post-Upgrade Pre-Flight Check

Before you actually update the Wgn3EventParticipant table so that it does not accept null Address UIDs, you must run a post-upgrade pre‑flight check script. (Do not confuse this pre-flight check with the pre-upgrade pre-flight check!) This post-upgrade pre‑flight check is standalone and only exercises a small data export test. It does not update any data in the database.

We strongly recommend that you run the pre‑flight check one or two days before the actual database upgrade. This gievs you time to fix any problems uncovered by the script without disrupting your upgrade schedule.

What Does the Pre-Flight Check Do?

The pre‑flight check script:

The pre‑flight check also estimates how long the table updates will take. The time estimate is based on a sample of one million table rows. Using the 'bcp' utility, the pre-flight check script copies a maximum of one million rows from the table to the file system, measuring the time and disk space required to do so. Using these figures, it then calculates the disk space required to copy out the entire table and estimates how long this will take.

To run the pre-flight check.

  1. Locate the pre-flight check file in your CA DLP distribution media.

    The post-upgrade pre-flight check is implemented as a stored procedure (SP), contained in the following file:

    wgn_post_upgrade_pfc.sql
    

    Find this file in the following folder:

    \Support\Upgrade12\MSSQL
    
  2. In SQL Server Management Studio, open and execute this file to create the SP.
  3. Run the following command as a login with the sysadmin role (we recommend sa). Note that you must use the same login when you actually modify the table (see step 1 in section 4, Run the Modify Table Script).
    EXEC dbo.wgn_post_upgrade_pfc '<dir>'
    

    where <dir> is the target folder where participant records will be copied to. You must specify a folder on the database host server (this is not necessarily the same as the CMS host server). This folder must already exist. For example:

    EXEC dbo.wgn_post_upgrade_pfc '\\unxsvr1\particpants\MyFolder'
    

    Important: Note the following requirements for the target folder!

  4. Check the script output in the Messages pane in SQL Server Management Studio.

    Note: By default, the Results pane displays. Switch to the Messages pane to view the output.

    This output indicates whether the necessary conditions have been met and estimates the time needed to update the table. In particular, the script output:

More information:

Pre-Flight Check Output

Example 1: Pre-Flight Check All OK

Example 2 Pre-Flight Check: CHECK Failed