Customization > Automation Interface > Functions > For Repositories > MapRepository function (automation interface)
MapRepository function (automation interface)
Syntax:
MapRepository (\\SQL\<server>@<instance>\<database>")
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 you want to bookmark in Model Explorer. The case of the name must be correct.
The MapRepository function bookmarks a database in Model Explorer.
Examples
This example bookmarks a database named MyDatabase in Model Explorer.
Set objManager = CreateObject("Studio.ModelManager")
objManager.MapRepository("\\SQL\MyServer@MODELER\MyDatabase")
Was this helpful?