Professional Documents
Culture Documents
Correcting Database Constraint Violations
Correcting Database Constraint Violations
Versions 2009, 2009 SP1, 2009 SP2, or 2009 SP3 to Version 2009 SP4.
If you are upgrading from a SmartPlant P&ID database version earlier than 2009, you must first
upgrade that database version to SmartPlant P&ID 2009 using Version 2009 of the Upgrade Utility, before
upgrading to SmartPlant P&ID 2009 SP4. For more information, visit the Intergraph Customer Support
(http://support.intergraph.com) Web site.
martPlant Engineering Manager Version 2009 SP5 is compatible with SmartPlant P&ID software
version 2009 SP4.
efore using the new version of the software, we strongly recommend that you completely upgrade
your plant and update all drawings to the current version. A plant with a mixture of upgraded and non-
upgraded data may result in some data being permanently inaccessible.
2. Generate a Database Constraint Exceptions Report. For more information, see Generate a Database
Constraint Exceptions Report (on page 60).
3. Clean up the database by removing orphan model items. For more information, see Clean Data Utility
(DelOrpModItems.dll) in the SmartPlant P&ID Utilities Guide.
4. Resolve constraint violations. For more information, see Constraint Utilities (on page 61).
5. Generate a database constraint exceptions report again.
6. Run the appropriate constraint utilities again if any exceptions still exist.
7. Continue running the database constraint report and the constraint utilities until no exceptions are
reported.
1. Make a complete backup of the now compliant data.
1. If you are using Microsoft SQL Server, you can skip this database constraints process.
2. For additional information on resolving discrepancies listed in the database constraint report,
contact your custom service representative.
Microsoft Excel must be installed on any workstation from which you run the Database Constraint
Exception Report utility.
Database Constraint Report Results
The Database Constraint Report file is a Microsoft Excel file containing several worksheets.
The first sheet in the report is the Report Progress Messages, which contains a list of the constraint
checks made and the number of violations detected for each constraint check. Each violation type
appears on its own worksheet, with the name of the constraint violation displayed on the worksheet tab.
Each worksheet also contains a list of drawings containing constraint exceptions, along with the name of
the recommended constraint utility (usually in cell B1) to use in resolving the violation.
All constraint utilities (see "Using Constraint Utilities" on page 61), including the Clean Data utility
(DelOrphModItem.dll), are run on an open drawing inside SmartPlant P&ID. However, unlike all the other
constraint utilities that run on a drawing-by-drawing basis, the Clean Data utility runs