Update Geodatabase Connection Properties To Branch (Data Management)

Summary

Updates an enterprise geodatabase connection to work with branch versioning.

Learn more about 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

arcpy.management.UpdateGeodatabaseConnectionPropertiesToBranch(input_database)
ParameterExplanationData Type
input_database

The input enterprise geodatabase connection to update.

Workspace

Derived Output

NameExplanationData Type
out_workspace

The updated enterprise geodatabase connection.

Workspace

Code sample

UpdateGeodatabaseConnectionPropertiesToBranch example (Python window)

Update an enterprise geodatabase connection named UNOwnerConnection.sde.

import arcpy
arcpy.UpdateGeodatabaseConnectionPropertiesToBranch_management("C:\\Projects\\MyUNProject\\UNOwnerConnection.sde")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics