Skip to content

Database Checker

The Database Checker is used to verify that the CapaInstaller database layout is correct according to the released version. The Database Checker will download an XML file from the web, which is the released version, and compare it with your currently running CapaInstaller database. Your running CapaInstaller database layout is referred to as the Currentdatabase, and the released database layout from the XML file downloaded from the web is referred to as XmlLayout.

Database Checker is meant to be used when unexpected SQL errors are found in log files. Then run the Database Checker to make sure the database I compliant.

Database Checker will check the following items in the database

ItemDescription
TablesFirst, check if each table exist, and then for each table checking the following items
- Columns exist
- Columns datatype and datatype size is equal
- Primary key exists
- Index exist
- Unique Constraint exist
- Foreign key exists
- Trigger exist
ViewsDoes the view exist, and are the script identical
Stored ProceduresDoes the Store Procedure exist, and are the script identical
User-Defined FunctionsDoes the User-Defined Function exist, and are the script identical
Roles and RightsDo each role exist, and does it contain the right

Here is a description of the errors and warnings.

Section titled “Here is a description of the errors and warnings.”
Issue typeDescription
Error CriticalThese are critical errors found in the current database, that needs to be fixed, for the CapaInstaller system to be running correctly.
ErrorThese are errors found in the current database, that needs to be fixed for the CapaInstaller system to be running correctly.
WarningThese warnings are issues found in the current database, that should not exist in the layout. It could be tables, columns, etc. added by the user.
OK
StepAction
1Go to System Administration, and click Actions and then the Database Checker menu item*.*   
2Opening the Database Checker will look like this
3Click on Check Database to start comparing the current database layout, with the layout from the XML file from the web.
If no errors or warnings are found, the Database Checker will look like this
4The Database Checker will look like this if errors or warnings are found in the database layout.
5Click Save to file, to save the errors and warnings into a text file. You choose the location of the file, and then you can send the text file to CapaInstaller Support.