Customization > Automation Interface > Functions > For Models > ReconcileModel function (automation interface)
ReconcileModel function (automation interface)
Syntax:
ReconcileModel (\\SQL\<server>@<instance>\<database>\<model>\<version>", "<log file>")
Where:
<server> is a string that specifies the name of the server on which the Database resides. The case of the name must be correct.
<database> is a string that specifies the name of the Database that owns the Model you want to reconcile. The case of the name must be correct.
<model> is a string that specifies the name of the Model you want to reconcile. The case of the name must be correct.
<version> is a string that specifies the version of the Model you want to reconcile.
<log file> is a string that specifies the path and name of the log file in which you want to record any log messages.
After performing the ReconcileModel function, the following properties are available:
RecErrors - errors reported from the reconcile operation.
RecWarnings - warnings reported from the reconcile operation.
RecConflicts - conflicts reported from the reconcile operation.
RecConflictObject - ID of the Change Note or Text Diagram that is created in the model to record conflicts.
The ReconcileModel function reconciles the tip version of a branch.
Examples
This example reconciles version 0.0.1 of the MyModel model in the MyDatabase database, creates a log file named C:\MyLogFiles\MyLogFile.txt.
Set objManager = CreateObject("Studio.ModelManager")
objManager.ReconcileModel("\\SQL\MyServer@MODELER\MyDatabase\MyModel\0.0.1","C:\MyLogFiles\MyLogFile.txt")
Was this helpful?