Database Upgrade Pre-check Utility:
===================================
The Database Upgrade Pre-check Utility performs a precheck on the 1.07 database to check
for the missing COS records  and to ensure no duplicate restriction permission codes exist.
If any of the later conditions exist, the upgrade from  

CRs 
===
Q00670296/Q00820604 - missing COS record NMCOS/COSID 5 (Administrator) causes NBDBIC.DLL error
Q00885764 - Duplicate restriction/permission codes within single RPL list cause NBDBIC.DLL error

Usage:
======
The tool must be run on 1.07 CallPilot Server before starting the OS upgrade  
to Callpillot 2.0.

1) Unzip the tool to directory D:\Temp.
2) There's no need to stop any services. The tool will not stop call processing.
2) Run the utility by double clicking on nbdbupgchk.exe within the nbdbupgchk folder.
3) A window will show the results of the analysis.

Results:
========

1. If no issues are found and the upgrade can process the following message will be displayed 
   "No inconsistency was found.".

2. If an issue is found the following message appears:
   "WARNING! YOUR DATABASE COULDN'T BE UPGRADED TO CP 2.0!!!
      Please, see log file for error description.
      You must correct the error before upgrade."

   In the case of the appearance of the message above the log file should be checked. 
   To review the log file, use any text editor, such as Notepad. The file is located on 
   the server at C:\CallPilot\CallPilot20.log.


Troubleshooting
===============
The following is error descriptions can be found in the log file produced by the tool.

1) "The record in Restriction Permission List for RPLName = XXXXX, Code = YYYY is not unique"
   (XXXXX and YYYY depend on a particular case)

   How to correct:
	Open Administration Client / Restriction Permission Lists and find a Permission List named XXXXX.
	Ensure that YYYY is exists in both Permission and Restriction columns of XXXXX List.
	Leave YYYY only in a column needed.
	Re-run the tool to ensure problem has gone.

2) "Default Class of Service is not found: COSID ZZZ"
   (ZZZ depends on a particular case)
 
   How to correct:
	Contact your next level of support.  A database entry will need to be applied.