Customization > Automation Interface > Functions > For Models > SandboxModel function (automation interface)
SandboxModel function (automation interface)
Syntax:
SandboxModel (\\SQL\<server>@<instance>\<database>\<model>\<version>")
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 branch. The case of the name must be correct.
<model> is a string that specifies the name of the Model you want to branch. The case of the name must be correct.
<version> is a string that specifies the version of the Model you want to branch. If the Model has not been versioned, the version is 0.
The SandboxModel function creates a branch of a trunk version of a model.
This function returns the reference of the new model version.
Examples
This example creates a branch (sandbox) from the MyModel version 3 model in the MyDatabase database.
Set objManager = CreateObject("Studio.ModelManager")
objManager.SandboxModel("\\SQL\MyServer@MODELER\MyDatabase\MyModel\3")
Was this helpful?