Summary
Updates an enterprise geodatabase connection to work with branch versioning.
Usage
To register a dataset as branch versioned, use this tool to update your existing database connection property, and then register the dataset as versioned. This is required when working with a utility network.
The input connection file will remain updated to work with branch versioning unless the connection file is opened and modified. For example, if the connected user or password is altered, re-run the tool to update the connection file.
The enterprise geodatabases that are supported by this tool are limited to the enterprise geodatabases that are supported by the utility network.
Alternatively, you can use the Create Database Connection tool to create a new connection to a geodatabase and specify the branch version type.
Syntax
UpdateGeodatabaseConnectionPropertiesToBranch(input_database)
Parameter | Explanation | Data Type |
input_database | The input enterprise geodatabase connection to update. | Workspace |
Derived Output
Name | Explanation | Data Type |
out_workspace | The updated enterprise geodatabase connection. | Workspace |
Code sample
Update an enterprise geodatabase connection named UNOwnerConnection.sde.
import arcpy
arcpy.UpdateGeodatabaseConnectionPropertiesToBranch_management("C:\\Projects\\MyUNProject\\UNOwnerConnection.sde")
Environments
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes