Verify if the logic model (cataloged in the dictionary) corresponds with the physical model (database) of each one of the objects (table, index, check, etc). It not only verifies but also gives an idea of what should be execute so that the logical model corresponds to the physical model.

# 1 connection.schema.model.status

<connection.schema.model.status    type='type'    dict='dict'    pattern='pattern'    debug='debug'/>
Example

Verifies the ctercero table, only the table (columns, data types, not null, default, etc).

Copy
<xsql-script name='model_status1'>
<body>
<println>
<connection.schema.model.status debug='true' dict='wic_icon' type='table' pattern='ctercero' />
</println>
</body>
</xsql-script>

To execute it from the console it should be written:

Copy
bin\ws-dbscript -dbms dbtest -file test.xml -user mlg

The xsql-script prints the result.

Copy
+-----+--------+------+------+--------+----------+-----------+------------+-----------+-----------------------+---------------------------------------------+
|seqno|database|server|schema|dict    |table_name|object_type|object_name |defect_type|message                |repair                                       |
+-----+--------+------+------+--------+----------+-----------+------------+-----------+-----------------------+---------------------------------------------+
|    1|erp_test|dbsrv3|      |wic_icon|ctercero  |COLUMN     |user_created|column name|expected name is coment|RENAME COLUMN ctercero.user_created TO coment|
+-----+--------+------+------+--------+----------+-----------+------------+-----------+-----------------------+---------------------------------------------+

The system returns a vtable with the result. The columns of the vtable informs of the processed objects and their results.

Copy
Process sequencer
Database
Server
Schema
Dictionary
Table
Type of analized object
Name of the analized object
Type of default founded
Message

Suggestion sequence to execute to repair the difference